pub trait IntoWasm<'a, Item> {
    // Required method
    fn as_wast(&'a self) -> Item;
}

Required Methods§

source

fn as_wast(&'a self) -> Item

Implementors§

source§

impl<'a> IntoWasm<'a, PrimitiveValType> for WasmType

source§

impl<'a, 'i> IntoWasm<'a, (Option<Id<'a>>, Option<NameAnnotation<'a>>, ValType<'a>)> for ParameterType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Option<NameAnnotation<'i>>> for WasmBuilder
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CoreFuncKind<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, FuncKind<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CoreModuleKind<'i>> for WasmBuilder
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for ArrayType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for StructureItem
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for VariantType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentValType<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for StructureItem
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for VariantType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Instruction<'i>> for WasmValue
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, FuncKind<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, StorageType<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, TypeDef<'i>> for VariantType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ValType<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Start<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CanonLift<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CoreFunc<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Func<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CoreModule<'i>> for WasmBuilder
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentFunctionParam<'i>> for ParameterType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentFunctionResult<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ComponentFunctionType<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, CoreType<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Enum<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Flags<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, List<'i>> for ArrayType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Record<'i>> for StructureItem
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, RecordField<'i>> for FieldType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for StructureItem
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for VariantType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Variant<'i>> for VariantType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, VariantCase<'i>> for StructureItem
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Producers<'i>> for WasmBuilder
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Expression<'i>> for FunctionBody
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Expression<'i>> for WasmVariable
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Func<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Local<'i>> for ParameterType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Global<'i>> for WasmVariable
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Import<'i>> for ExternalType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, ArrayType<'i>> for ArrayType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, FunctionType<'i>> for ExternalType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, FunctionType<'i>> for FunctionType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, StructField<'i>> for FieldType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for WasmType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for ArrayType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for EnumerateType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for FlagType
where 'a: 'i,

source§

impl<'a, 'i> IntoWasm<'a, Type<'i>> for VariantType
where 'a: 'i,