pub fn ensure_type_kind(
ty: &impl WasmType,
kind: WasmTypeKind,
) -> Result<(), WasmValueError>
Expand description
Returns an error if the given WasmType
is not of the given WasmTypeKind
.
pub fn ensure_type_kind(
ty: &impl WasmType,
kind: WasmTypeKind,
) -> Result<(), WasmValueError>
Returns an error if the given WasmType
is not of the given WasmTypeKind
.