Struct utf8::Incomplete
[−]
[src]
pub struct Incomplete { pub buffer: [u8; 4], pub buffer_len: u8, }
Fields
buffer: [u8; 4]
buffer_len: u8
Methods
impl Incomplete
[src]
fn new(bytes: &[u8]) -> Self
fn try_complete<'char, 'input>(&'char mut self,
input: &'input [u8])
-> Option<(Result<&'char str, &'char [u8]>, &'input [u8])>
input: &'input [u8])
-> Option<(Result<&'char str, &'char [u8]>, &'input [u8])>
None
: still incomplete, calltry_complete
again with more input. If no more input is available, this is invalid byte sequence.Some((result, rest))
: We’re done with thisIncomplete
. To keep decoding, passrest
todecode()
.
Trait Implementations
impl Debug for Incomplete
[src]
impl Copy for Incomplete
[src]
impl Clone for Incomplete
[src]
fn clone(&self) -> Incomplete
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more