pub struct ManagedBytesNestedDecodeInput<M: ManagedTypeApi> { /* private fields */ }Implementations§
source§impl<M: ManagedTypeApi> ManagedBytesNestedDecodeInput<M>
impl<M: ManagedTypeApi> ManagedBytesNestedDecodeInput<M>
Trait Implementations§
source§impl<M: ManagedTypeApi> NestedDecodeInput for ManagedBytesNestedDecodeInput<M>
impl<M: ManagedTypeApi> NestedDecodeInput for ManagedBytesNestedDecodeInput<M>
source§fn remaining_len(&self) -> usize
fn remaining_len(&self) -> usize
The remaining length of the input data.
source§fn read_into(&mut self, into: &mut [u8]) -> Result<(), DecodeError>
fn read_into(&mut self, into: &mut [u8]) -> Result<(), DecodeError>
Read the exact number of bytes required to fill the given buffer.
source§fn read_into_or_exit<ExitCtx: Clone>(
&mut self,
into: &mut [u8],
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
)
fn read_into_or_exit<ExitCtx: Clone>( &mut self, into: &mut [u8], c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! )
Read the exact number of bytes required to fill the given buffer.
Exit early if there are not enough bytes to fill the result.
fn read_specialized<T, C, F>( &mut self, context: C, else_deser: F ) -> Result<T, DecodeError>
fn read_specialized_or_exit<T, C, ExitCtx, F>( &mut self, context: C, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> !, else_deser: F ) -> T
source§fn is_depleted(&self) -> bool
fn is_depleted(&self) -> bool
True if all data from the buffer has already been used.
source§fn read_byte_or_exit<ExitCtx>(
&mut self,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> u8where
ExitCtx: Clone,
fn read_byte_or_exit<ExitCtx>(
&mut self,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> u8where
ExitCtx: Clone,
Read a single byte from the input.
Auto Trait Implementations§
impl<M> RefUnwindSafe for ManagedBytesNestedDecodeInput<M>where
M: RefUnwindSafe,
impl<M> Send for ManagedBytesNestedDecodeInput<M>where
M: Send,
impl<M> Sync for ManagedBytesNestedDecodeInput<M>where
M: Sync,
impl<M> Unpin for ManagedBytesNestedDecodeInput<M>where
M: Unpin,
impl<M> UnwindSafe for ManagedBytesNestedDecodeInput<M>where
M: UnwindSafe,
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