pub enum DecodeOutcome {
Complete(Varint),
Incomplete(DecodeState),
Empty,
}Expand description
Result of a varint decode step.
Returned by IteratorExtVarint::read_varint_partial, ReadExtVarint::read_varint_partial,
and their read_varint_resume variants.
Variants§
Complete(Varint)
Parsing completed successfully.
Incomplete(DecodeState)
Parser ran out of input. Use read_varint_resume with the state
to continue from another reader/iterator/stream.
Empty
No bytes were read (empty input).
Trait Implementations§
Source§impl Clone for DecodeOutcome
impl Clone for DecodeOutcome
Source§fn clone(&self) -> DecodeOutcome
fn clone(&self) -> DecodeOutcome
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 Debug for DecodeOutcome
impl Debug for DecodeOutcome
Source§impl PartialEq for DecodeOutcome
impl PartialEq for DecodeOutcome
impl Copy for DecodeOutcome
impl Eq for DecodeOutcome
impl StructuralPartialEq for DecodeOutcome
Auto Trait Implementations§
impl Freeze for DecodeOutcome
impl RefUnwindSafe for DecodeOutcome
impl Send for DecodeOutcome
impl Sync for DecodeOutcome
impl Unpin for DecodeOutcome
impl UnwindSafe for DecodeOutcome
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