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 codeword is incomplete and the next fragment is needed.
Invalid
The codeword is invalid (possible only for bits per fragment > 1).
Trait Implementations§
Source§impl<T: Clone> Clone for DecodingResult<T>
impl<T: Clone> Clone for DecodingResult<T>
Source§fn clone(&self) -> DecodingResult<T>
fn clone(&self) -> DecodingResult<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for DecodingResult<T>
impl<T: Debug> Debug for DecodingResult<T>
Source§impl<T> From<Option<T>> for DecodingResult<T>
impl<T> From<Option<T>> for DecodingResult<T>
Source§impl<T: Hash> Hash for DecodingResult<T>
impl<T: Hash> Hash for DecodingResult<T>
Source§impl<T: Ord> Ord for DecodingResult<T>
impl<T: Ord> Ord for DecodingResult<T>
Source§fn cmp(&self, other: &DecodingResult<T>) -> Ordering
fn cmp(&self, other: &DecodingResult<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for DecodingResult<T>
impl<T: PartialEq> PartialEq for DecodingResult<T>
Source§impl<T: PartialOrd> PartialOrd for DecodingResult<T>
impl<T: PartialOrd> PartialOrd for DecodingResult<T>
impl<T: Eq> Eq for DecodingResult<T>
impl<T> StructuralPartialEq for DecodingResult<T>
Auto Trait Implementations§
impl<T> Freeze for DecodingResult<T>where
T: Freeze,
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§
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