Struct utf8::Incomplete [−][src]
Fields
buffer: [u8; 4]
buffer_len: u8
Methods
impl Incomplete[src]
impl Incompletepub fn empty() -> Self[src]
pub fn empty() -> Selfpub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolpub fn new(bytes: &[u8]) -> Self[src]
pub fn new(bytes: &[u8]) -> Selfpub fn try_complete<'input>(
&mut self,
input: &'input [u8]
) -> Option<(Result<&str, &[u8]>, &'input [u8])>[src]
pub fn try_complete<'input>(
&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 Debug for Incomplete[src]
impl Debug for Incompletefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Incomplete[src]
impl Copy for Incompleteimpl Clone for Incomplete[src]
impl Clone for Incompletefn clone(&self) -> Incomplete[src]
fn clone(&self) -> IncompleteReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for Incomplete
impl Send for Incompleteimpl Sync for Incomplete
impl Sync for Incomplete