Struct utf8::Incomplete [−][src]
Fields
buffer: [u8; 4]
buffer_len: u8
Implementations
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_complete
again 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_input
todecode()
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Incomplete
impl Send for Incomplete
impl Sync for Incomplete
impl Unpin for Incomplete
impl UnwindSafe for Incomplete
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,