Trait wasmi_core::DecodeUntypedSlice
source · pub trait DecodeUntypedSlice: Sized {
fn decode_untyped_slice(
params: &[UntypedValue]
) -> Result<Self, UntypedError>;
}Expand description
Tuple types that allow to decode a slice of UntypedValue.
Required Methods§
sourcefn decode_untyped_slice(params: &[UntypedValue]) -> Result<Self, UntypedError>
fn decode_untyped_slice(params: &[UntypedValue]) -> Result<Self, UntypedError>
Decodes the slice of UntypedValue as a 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.