pub struct CompactSizeDecoder { /* private fields */ }Expand description
Decodes a compact size encoded integer.
For more information about decoder see the documentation of the Decoder trait.
Implementations§
Trait Implementations§
Source§impl Clone for CompactSizeDecoder
impl Clone for CompactSizeDecoder
Source§fn clone(&self) -> CompactSizeDecoder
fn clone(&self) -> CompactSizeDecoder
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 CompactSizeDecoder
impl Debug for CompactSizeDecoder
Source§impl Decoder for CompactSizeDecoder
impl Decoder for CompactSizeDecoder
Source§type Error = CompactSizeDecoderError
type Error = CompactSizeDecoderError
The error type that this decoder can produce.
Source§fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
fn push_bytes(&mut self, bytes: &mut &[u8]) -> Result<bool, Self::Error>
Push bytes into the decoder, consuming as much as possible. Read more
Source§fn end(self) -> Result<Self::Output, Self::Error>
fn end(self) -> Result<Self::Output, Self::Error>
Complete the decoding process and return the final result. Read more
Source§fn read_limit(&self) -> usize
fn read_limit(&self) -> usize
Returns the maximum number of bytes this decoder can consume without over-reading. Read more
Auto Trait Implementations§
impl Freeze for CompactSizeDecoder
impl RefUnwindSafe for CompactSizeDecoder
impl Send for CompactSizeDecoder
impl Sync for CompactSizeDecoder
impl Unpin for CompactSizeDecoder
impl UnwindSafe for CompactSizeDecoder
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