Struct dharitri_wasm::types::ManagedArgBuffer
source · pub struct ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,{ /* private fields */ }Implementations§
source§impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
source§impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn push_arg_raw(&mut self, raw_arg: ManagedBuffer<M>)
pub fn push_arg<T: TopEncode>(&mut self, arg: T)
sourcepub fn concat(self, other: ManagedArgBuffer<M>) -> Self
pub fn concat(self, other: ManagedArgBuffer<M>) -> Self
Concatenates 2 managed arg buffers. Consumes both arguments in the process.
pub fn to_raw_args_vec(&self) -> Vec<Vec<u8>>
source§impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
pub fn to_legacy_arg_buffer(&self) -> ArgBuffer
source§impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
pub fn raw_arg_iter(&self) -> ManagedVecIterator<'_, M, ManagedBuffer<M>> ⓘ
Trait Implementations§
source§impl<M> Debug for ManagedArgBuffer<M>
impl<M> Debug for ManagedArgBuffer<M>
source§impl<M: ManagedTypeApi> DynArgOutput for ManagedArgBuffer<M>
impl<M: ManagedTypeApi> DynArgOutput for ManagedArgBuffer<M>
fn push_single_arg<T: TopEncode>(&mut self, arg: T)
source§impl<M> From<ManagedVec<M, ManagedBuffer<M>>> for ManagedArgBuffer<M>where
M: ManagedTypeApi,
impl<M> From<ManagedVec<M, ManagedBuffer<M>>> for ManagedArgBuffer<M>where
M: ManagedTypeApi,
source§fn from(data: ManagedVec<M, ManagedBuffer<M>>) -> Self
fn from(data: ManagedVec<M, ManagedBuffer<M>>) -> Self
Converts to this type from the input type.
source§impl<M, I> ManagedFrom<M, Vec<I>> for ManagedArgBuffer<M>
impl<M, I> ManagedFrom<M, Vec<I>> for ManagedArgBuffer<M>
fn managed_from(api: M, v: Vec<I>) -> Self
source§impl<M> ManagedType<M> for ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M> ManagedType<M> for ManagedArgBuffer<M>where
M: ManagedTypeApi + ErrorApi + 'static,
fn type_manager(&self) -> M
source§impl<M> NestedDecode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
impl<M> NestedDecode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
source§fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>
Attempt to deserialise the value from input,
using the format of an object nested inside another structure.
In case of success returns the deserialized value and the number of bytes consumed during the operation.
source§fn dep_decode_or_exit<I, ExitCtx>(
input: &mut I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: NestedDecodeInput,
ExitCtx: Clone,
fn dep_decode_or_exit<I, ExitCtx>(
input: &mut I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: NestedDecodeInput,
ExitCtx: Clone,
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<M> NestedEncode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
impl<M> NestedEncode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
source§fn dep_encode<O: NestedEncodeOutput>(
&self,
dest: &mut O
) -> Result<(), EncodeError>
fn dep_encode<O: NestedEncodeOutput>( &self, dest: &mut O ) -> Result<(), EncodeError>
NestedEncode to output, using the format of an object nested inside another structure.
Does not provide compact version.
source§fn dep_encode_or_exit<O, ExitCtx>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)where
O: NestedEncodeOutput,
ExitCtx: Clone,
fn dep_encode_or_exit<O, ExitCtx>(
&self,
dest: &mut O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)where
O: NestedEncodeOutput,
ExitCtx: Clone,
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<M> TopDecode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
impl<M> TopDecode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
source§fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>
Attempt to deserialize the value from input.
source§fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: TopDecodeInput,
ExitCtx: Clone,
fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(_: ExitCtx, _: DecodeError) -> !
) -> Selfwhere
I: TopDecodeInput,
ExitCtx: Clone,
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller implementations
in cases where the application is supposed to exit directly on decode error.source§impl<M> TopEncode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
impl<M> TopEncode for ManagedArgBuffer<M>where
M: ManagedTypeApi,
source§fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>
Attempt to serialize the value to ouput.
source§fn top_encode_or_exit<O, ExitCtx>(
&self,
output: O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)where
O: TopEncodeOutput,
ExitCtx: Clone,
fn top_encode_or_exit<O, ExitCtx>(
&self,
output: O,
c: ExitCtx,
exit: fn(_: ExitCtx, _: EncodeError) -> !
)where
O: TopEncodeOutput,
ExitCtx: Clone,
Version of
top_decode that exits quickly in case of error.
Its purpose is to create smaller bytecode implementations
in cases where the application is supposed to exit directly on decode error.Auto Trait Implementations§
impl<M> RefUnwindSafe for ManagedArgBuffer<M>where
M: RefUnwindSafe,
impl<M> Send for ManagedArgBuffer<M>where
M: Send,
impl<M> Sync for ManagedArgBuffer<M>where
M: Sync,
impl<M> Unpin for ManagedArgBuffer<M>where
M: Unpin,
impl<M> UnwindSafe for ManagedArgBuffer<M>where
M: UnwindSafe,
Blanket Implementations§
source§impl<M, T> AsManagedRef<M, T> for Twhere
M: ManagedTypeApi,
T: ManagedType<M>,
impl<M, T> AsManagedRef<M, T> for Twhere
M: ManagedTypeApi,
T: ManagedType<M>,
fn as_managed_ref(&self) -> ManagedRef<M, T>
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