pub struct DecodeState { /* private fields */ }Expand description
Parser state when varint decoding runs out of bytes before completing.
Returned in DecodeOutcome::Incomplete. Use with read_varint_resume to continue parsing.
Varint parsing is performed only through the extension traits
(IteratorExtVarint, TryIteratorExtVarint, ReadExtVarint, etc.).
Trait Implementations§
Source§impl Clone for DecodeState
impl Clone for DecodeState
Source§fn clone(&self) -> DecodeState
fn clone(&self) -> DecodeState
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 DecodeState
impl Debug for DecodeState
Source§impl Default for DecodeState
impl Default for DecodeState
Source§fn default() -> DecodeState
fn default() -> DecodeState
Returns the “default value” for a type. Read more
Source§impl Hash for DecodeState
impl Hash for DecodeState
Source§impl PartialEq for DecodeState
impl PartialEq for DecodeState
impl Copy for DecodeState
impl Eq for DecodeState
impl StructuralPartialEq for DecodeState
Auto Trait Implementations§
impl Freeze for DecodeState
impl RefUnwindSafe for DecodeState
impl Send for DecodeState
impl Sync for DecodeState
impl Unpin for DecodeState
impl UnwindSafe for DecodeState
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