wasm_wave::wasm

Function ensure_type_kind

Source
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.