Struct elrond_wasm::types::ManagedArgBuffer [−][src]
pub struct ManagedArgBuffer<M> where
M: ManagedTypeApi + ErrorApi + 'static, { /* fields omitted */ }
Implementations
Concatenates 2 managed arg buffers. Consumes both arguments in the process.
pub fn raw_arg_iter(&self) -> ManagedVecIterator<'_, M, ManagedBuffer<M>>ⓘNotable traits for ManagedVecIterator<'a, M, T>impl<'a, M, T> Iterator for ManagedVecIterator<'a, M, T> where
M: ManagedTypeApi,
T: ManagedVecItem, type Item = T;
impl<'a, M, T> Iterator for ManagedVecIterator<'a, M, T> where
M: ManagedTypeApi,
T: ManagedVecItem, type Item = T;
Trait Implementations
Performs the conversion.
impl<M, I> From<Vec<I, Global>> for ManagedArgBuffer<M> where
M: ManagedTypeApi,
I: Into<ManagedBuffer<M>>,
impl<M, I> From<Vec<I, Global>> for ManagedArgBuffer<M> where
M: ManagedTypeApi,
I: Into<ManagedBuffer<M>>,
impl<M: ManagedTypeApi> ManagedType<M> for ManagedArgBuffer<M> where
M: ManagedTypeApi + ErrorApi + 'static,
impl<M: ManagedTypeApi> ManagedType<M> for ManagedArgBuffer<M> where
M: ManagedTypeApi + ErrorApi + 'static,
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. Read more
fn dep_decode_or_exit<I, ExitCtx>(
input: &mut I,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> Self where
I: NestedDecodeInput,
ExitCtx: Clone,
fn dep_decode_or_exit<I, ExitCtx>(
input: &mut I,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> Self where
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. Read more
NestedEncode to output, using the format of an object nested inside another structure. Does not provide compact version. Read more
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. Read more
Attempt to deserialize the value from input.
fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> Self where
I: TopDecodeInput,
ExitCtx: Clone,
fn top_decode_or_exit<I, ExitCtx>(
input: I,
c: ExitCtx,
exit: fn(ExitCtx, DecodeError) -> !
) -> Self where
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. Read more
Attempt to serialize the value to ouput.
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. Read more