Struct elrond_wasm::types::ArgBuffer [−][src]
pub struct ArgBuffer { /* fields omitted */ }
Expand description
Helper structure for providing arguments to all SC call functions other than async_call_raw. It keeps argument lengths separately from the argument data itself. Argument data is concatenated into a single byte buffer.
Implementations
returns the raw arg data lengths
Quick for-each using closures. TODO: also write an Iterator at some point, but beware of wasm bloat.
Trait Implementations
Performs the conversion.
type NestedBuffer = Vec<u8>
type NestedBuffer = Vec<u8>
Type of NestedEncodeOutput
that can be spawned to gather serializations of children.
fn set_specialized<T, F>(
self,
_value: &T,
else_serialization: F
) -> Result<(), EncodeError> where
T: TryStaticCast,
F: FnOnce(Self) -> Result<(), EncodeError>,
fn set_specialized<T, F>(
self,
_value: &T,
else_serialization: F
) -> Result<(), EncodeError> where
T: TryStaticCast,
F: FnOnce(Self) -> Result<(), EncodeError>,
Allows special handling of special types.
Also requires an alternative serialization, in case the special handling is not covered.
The alternative serialization, else_serialization
is only called when necessary and
is normally compiled out via monomorphization. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArgBuffer
impl UnwindSafe for ArgBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more