Struct utf8::Incomplete [−][src]
Fields
buffer: [u8; 4]buffer_len: u8Implementations
impl Incomplete[src]
impl Incomplete[src]pub fn empty() -> Self[src]
pub fn is_empty(&self) -> bool[src]
pub fn new(bytes: &[u8]) -> Self[src]
pub fn try_complete<'input>(
&mut self,
input: &'input [u8]
) -> Option<(Result<&str, &[u8]>, &'input [u8])>[src]
&mut self,
input: &'input [u8]
) -> Option<(Result<&str, &[u8]>, &'input [u8])>
None: still incomplete, calltry_completeagain with more input. If no more input is available, this is invalid byte sequence.Some((result, remaining_input)): We’re done with thisIncomplete. To keep decoding, passremaining_inputtodecode().
Trait Implementations
impl Clone for Incomplete[src]
impl Clone for Incomplete[src]