Struct dharitri_wasm::types::ManagedBytesTopDecodeInput
source · pub struct ManagedBytesTopDecodeInput<M: ManagedTypeApi> { /* private fields */ }Implementations§
source§impl<M: ManagedTypeApi> ManagedBytesTopDecodeInput<M>
impl<M: ManagedTypeApi> ManagedBytesTopDecodeInput<M>
pub fn new(bytes: BoxedBytes) -> Self
Trait Implementations§
source§impl<M> TopDecodeInput for ManagedBytesTopDecodeInput<M>where
M: ManagedTypeApi,
impl<M> TopDecodeInput for ManagedBytesTopDecodeInput<M>where
M: ManagedTypeApi,
type NestedBuffer = ManagedBytesNestedDecodeInput<M>
source§fn into_boxed_slice_u8(self) -> Box<[u8]>
fn into_boxed_slice_u8(self) -> Box<[u8]>
Provides the underlying data as an owned byte slice box.
Consumes the input object in the process.
fn into_specialized<T, F>(self, else_deser: F) -> Result<T, DecodeError>
fn into_nested_buffer(self) -> Self::NestedBuffer
source§fn into_u64(self) -> u64
fn into_u64(self) -> u64
Retrieves the underlying data as a pre-parsed u64.
Expected to panic if the conversion is not possible. Read more
source§fn into_i64(self) -> i64
fn into_i64(self) -> i64
Retrieves the underlying data as a pre-parsed i64.
Expected to panic if the conversion is not possible. Read more
source§fn into_specialized_or_exit<T, F, ExitCtx>(
self,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !,
else_deser: F
) -> Twhere
T: TryStaticCast,
ExitCtx: Clone,
F: FnOnce(Self, ExitCtx, fn(_: ExitCtx, _: DecodeError) -> !) -> T,
fn into_specialized_or_exit<T, F, ExitCtx>(
self,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !,
else_deser: F
) -> Twhere
T: TryStaticCast,
ExitCtx: Clone,
F: FnOnce(Self, ExitCtx, fn(_: ExitCtx, _: DecodeError) -> !) -> T,
Note: currently not in use.
Auto Trait Implementations§
impl<M> RefUnwindSafe for ManagedBytesTopDecodeInput<M>where
M: RefUnwindSafe,
impl<M> Send for ManagedBytesTopDecodeInput<M>where
M: Send,
impl<M> Sync for ManagedBytesTopDecodeInput<M>where
M: Sync,
impl<M> Unpin for ManagedBytesTopDecodeInput<M>where
M: Unpin,
impl<M> UnwindSafe for ManagedBytesTopDecodeInput<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