pub enum TagOutcome {
Complete(Tag),
Empty,
Incomplete(DecodeState),
}Expand description
Result of a tag read step.
Returned by IteratorExtTag::read_tag_partial, ReadExtTag::read_tag_partial,
and their read_tag_resume variants.
Variants§
Complete(Tag)
Parsing completed successfully.
Empty
No bytes were read (empty input).
Incomplete(DecodeState)
Parser ran out of input. Use read_tag_resume with the state
to continue from another reader/iterator/stream.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnwindSafe for Outcome
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