Trait wasmi::core::EncodeUntypedSlice
source · pub trait EncodeUntypedSlice {
// Required method
fn encode_untyped_slice(
self,
results: &mut [UntypedVal],
) -> Result<(), UntypedError>;
}
Expand description
Tuple types that allow to encode a slice of UntypedVal
.
Required Methods§
sourcefn encode_untyped_slice(
self,
results: &mut [UntypedVal],
) -> Result<(), UntypedError>
fn encode_untyped_slice( self, results: &mut [UntypedVal], ) -> Result<(), UntypedError>
Encodes the slice of UntypedVal
from the given value of type Self
.
§Note
Self
can either be a single type or a tuple of types depending
on the length of the slice
.
§Errors
If the tuple length of Self
and the length of slice
does not match.