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 empty() -> Self
fn is_empty(&self) -> bool
fn new(bytes: &[u8]) -> Self
fn try_complete<'input>(
&mut self,
input: &'input [u8]
) -> Option<(Result<&str, &[u8]>, &'input [u8])>
&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 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