pub enum DecodeStatus {
Complete {
value: char,
consumed: usize,
},
NeedMore {
required: usize,
available: usize,
},
}Expand description
Non-error status reported after inspecting a decoder input prefix.
Variants§
Complete
A complete value was decoded from the prefix.
Fields
NeedMore
The current prefix is well-formed so far but incomplete.
Trait Implementations§
Source§impl Clone for DecodeStatus
impl Clone for DecodeStatus
Source§fn clone(&self) -> DecodeStatus
fn clone(&self) -> DecodeStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeStatus
impl Debug for DecodeStatus
Source§impl PartialEq for DecodeStatus
impl PartialEq for DecodeStatus
Source§fn eq(&self, other: &DecodeStatus) -> bool
fn eq(&self, other: &DecodeStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DecodeStatus
impl Eq for DecodeStatus
impl StructuralPartialEq for DecodeStatus
Auto Trait Implementations§
impl Freeze for DecodeStatus
impl RefUnwindSafe for DecodeStatus
impl Send for DecodeStatus
impl Sync for DecodeStatus
impl Unpin for DecodeStatus
impl UnsafeUnpin for DecodeStatus
impl UnwindSafe for DecodeStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more