pub enum DecodingResult<T> {
Value(T),
Incomplete,
Invalid,
}Expand description
Result of fragment decoding returned be consume method of Decoder.
Variants
Value(T)
Completed value that has been successfully decoded.
Incomplete
The code is incomplete and next fragment is needed.
Invalid
The code is invalid (possible only for bits per fragment > 1).
Trait Implementations
sourceimpl<T: Clone> Clone for DecodingResult<T>
impl<T: Clone> Clone for DecodingResult<T>
sourcefn clone(&self) -> DecodingResult<T>
fn clone(&self) -> DecodingResult<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<T: Debug> Debug for DecodingResult<T>
impl<T: Debug> Debug for DecodingResult<T>
sourceimpl<T> From<Option<T>> for DecodingResult<T>
impl<T> From<Option<T>> for DecodingResult<T>
sourceimpl<T: Hash> Hash for DecodingResult<T>
impl<T: Hash> Hash for DecodingResult<T>
sourceimpl<T: Ord> Ord for DecodingResult<T>
impl<T: Ord> Ord for DecodingResult<T>
sourceimpl<T: PartialEq> PartialEq<DecodingResult<T>> for DecodingResult<T>
impl<T: PartialEq> PartialEq<DecodingResult<T>> for DecodingResult<T>
sourcefn eq(&self, other: &DecodingResult<T>) -> bool
fn eq(&self, other: &DecodingResult<T>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &DecodingResult<T>) -> bool
fn ne(&self, other: &DecodingResult<T>) -> bool
This method tests for !=.
sourceimpl<T: PartialOrd> PartialOrd<DecodingResult<T>> for DecodingResult<T>
impl<T: PartialOrd> PartialOrd<DecodingResult<T>> for DecodingResult<T>
sourcefn partial_cmp(&self, other: &DecodingResult<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &DecodingResult<T>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<T: Eq> Eq for DecodingResult<T>
impl<T> StructuralEq for DecodingResult<T>
impl<T> StructuralPartialEq for DecodingResult<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for DecodingResult<T> where
T: RefUnwindSafe,
impl<T> Send for DecodingResult<T> where
T: Send,
impl<T> Sync for DecodingResult<T> where
T: Sync,
impl<T> Unpin for DecodingResult<T> where
T: Unpin,
impl<T> UnwindSafe for DecodingResult<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more