pub struct OwnedBytesNestedDecodeInput { /* private fields */ }
Expand description
A nested decode buffer that owns its data.
Implementations§
Trait Implementations§
Source§impl NestedDecodeInput for OwnedBytesNestedDecodeInput
impl NestedDecodeInput for OwnedBytesNestedDecodeInput
Source§fn remaining_len(&self) -> usize
fn remaining_len(&self) -> usize
The remaining length of the input data.
Source§fn peek_into<H>(&mut self, into: &mut [u8], h: H) -> Result<(), H::HandledErr>where
H: DecodeErrorHandler,
fn peek_into<H>(&mut self, into: &mut [u8], h: H) -> Result<(), H::HandledErr>where
H: DecodeErrorHandler,
Read the exact number of bytes required to fill the given buffer, without consuming the underlying bytes. Read more
Source§fn read_into<H>(&mut self, into: &mut [u8], h: H) -> Result<(), H::HandledErr>where
H: DecodeErrorHandler,
fn read_into<H>(&mut self, into: &mut [u8], h: H) -> Result<(), H::HandledErr>where
H: DecodeErrorHandler,
Read & consume the exact number of bytes required to fill the given buffer. Read more
Source§fn is_depleted(&self) -> bool
fn is_depleted(&self) -> bool
True if all data from the buffer has already been used.
fn supports_specialized_type<T: TryStaticCast>() -> bool
fn read_specialized<T, C, H>( &mut self, _context: C, h: H, ) -> Result<T, H::HandledErr>
Source§fn read_byte<H>(&mut self, h: H) -> Result<u8, H::HandledErr>where
H: DecodeErrorHandler,
fn read_byte<H>(&mut self, h: H) -> Result<u8, H::HandledErr>where
H: DecodeErrorHandler,
Read a single byte from the input.
Auto Trait Implementations§
impl Freeze for OwnedBytesNestedDecodeInput
impl RefUnwindSafe for OwnedBytesNestedDecodeInput
impl Send for OwnedBytesNestedDecodeInput
impl Sync for OwnedBytesNestedDecodeInput
impl Unpin for OwnedBytesNestedDecodeInput
impl UnwindSafe for OwnedBytesNestedDecodeInput
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