pub enum WasmType {
Show 19 variants
Bool,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
Unicode,
UTF8Text,
Any {
nullable: bool,
},
Flag(FlagType),
Enumerate(EnumerateType),
Structure(StructureType),
Variant(Box<VariantType>),
Array(Box<ArrayType>),
}Variants§
Bool
U8
U16
U32
U64
I8
I16
I32
I64
F32
F64
Unicode
UTF8Text
Any
Flag(FlagType)
Enumerate(EnumerateType)
Structure(StructureType)
Variant(Box<VariantType>)
Array(Box<ArrayType>)
Implementations§
source§impl WasmType
impl WasmType
pub fn set_nullable(&mut self, null: bool)
pub fn with_nullable(self, null: bool) -> Self
Trait Implementations§
source§impl From<EnumerateType> for WasmType
impl From<EnumerateType> for WasmType
source§fn from(value: EnumerateType) -> Self
fn from(value: EnumerateType) -> Self
Converts to this type from the input type.
source§impl From<StructureItem> for WasmType
impl From<StructureItem> for WasmType
source§fn from(value: StructureItem) -> Self
fn from(value: StructureItem) -> Self
Converts to this type from the input type.
source§impl From<VariantType> for WasmType
impl From<VariantType> for WasmType
source§fn from(value: VariantType) -> Self
fn from(value: VariantType) -> Self
Converts to this type from the input type.
source§impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for WasmTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, ComponentDefinedType<'i>> for WasmTypewhere
'a: 'i,
fn as_wast(&'a self) -> ComponentDefinedType<'i>
source§impl<'a, 'i> IntoWasm<'a, ComponentFunctionResult<'i>> for WasmTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, ComponentFunctionResult<'i>> for WasmTypewhere
'a: 'i,
fn as_wast(&'a self) -> ComponentFunctionResult<'i>
source§impl<'a, 'i> IntoWasm<'a, ComponentValType<'i>> for WasmTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, ComponentValType<'i>> for WasmTypewhere
'a: 'i,
fn as_wast(&'a self) -> ComponentValType<'i>
source§impl<'a> IntoWasm<'a, PrimitiveValType> for WasmType
impl<'a> IntoWasm<'a, PrimitiveValType> for WasmType
fn as_wast(&'a self) -> PrimitiveValType
source§impl<'a, 'i> IntoWasm<'a, StorageType<'i>> for WasmTypewhere
'a: 'i,
impl<'a, 'i> IntoWasm<'a, StorageType<'i>> for WasmTypewhere
'a: 'i,
fn as_wast(&'a self) -> StorageType<'i>
source§impl WasmInstruction for WasmType
impl WasmInstruction for WasmType
fn emit<'a, 'i>(&'a self, w: &mut Vec<Instruction<'i>>)where
'a: 'i,
Auto Trait Implementations§
impl RefUnwindSafe for WasmType
impl Send for WasmType
impl Sync for WasmType
impl Unpin for WasmType
impl UnwindSafe for WasmType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more