pub enum WasiType {
Show 18 variants
Boolean,
Unicode,
Integer8 {
signed: bool,
},
Integer16 {
signed: bool,
},
Integer32 {
signed: bool,
},
Integer64 {
signed: bool,
},
Float32,
Float64,
Option {
inner: Box<WasiType>,
},
Result {
fine: Option<Box<WasiType>>,
fail: Option<Box<WasiType>>,
},
Resource(WasiResource),
Record(WasiRecordType),
Variant(WasiVariantType),
Enums(WasiEnumeration),
Flags(WasiFlags),
Array(Box<WasiArrayType>),
Function(Box<WasiFunction>),
TypeHandler(WasiTypeReference),
}Variants§
Boolean
bool type in WASI
Unicode
char type in WASI
Integer8
s8 or u8 type in WASI
Integer16
s16 or u16 type in WASI
Integer32
s32 or u32 type in WASI
Integer64
s64 or u64 type in WASI
Float32
f32 type in WASI
Float64
f64 type in WASI
Option
Result
Resource(WasiResource)
resource type in WASI
Record(WasiRecordType)
record type in WASI
Variant(WasiVariantType)
variant type in WASI
Enums(WasiEnumeration)
enum type in WASI
Flags(WasiFlags)
enum type in WASI
Array(Box<WasiArrayType>)
list type in WASI
Function(Box<WasiFunction>)
function type in WASI
TypeHandler(WasiTypeReference)
type reference in WASI
Implementations§
Source§impl WasiType
impl WasiType
Sourcepub fn wasm_module(&self) -> Option<&WasiModule>
pub fn wasm_module(&self) -> Option<&WasiModule>
Get the type definition of the type, composite type returns None
Sourcepub fn language_id(&self) -> Option<&Identifier>
pub fn language_id(&self) -> Option<&Identifier>
Returns the language identifier of the type, anonymous type returns None
pub fn is_heap_type(&self) -> bool
Trait Implementations§
Source§impl AddAssign<WasiType> for WasiFunction
impl AddAssign<WasiType> for WasiFunction
Source§fn add_assign(&mut self, rhs: WasiType)
fn add_assign(&mut self, rhs: WasiType)
Performs the
+= operation. Read moreSource§impl From<WasiArrayType> for WasiType
impl From<WasiArrayType> for WasiType
Source§fn from(value: WasiArrayType) -> Self
fn from(value: WasiArrayType) -> Self
Converts to this type from the input type.
Source§impl From<WasiEnumeration> for WasiType
impl From<WasiEnumeration> for WasiType
Source§fn from(value: WasiEnumeration) -> Self
fn from(value: WasiEnumeration) -> Self
Converts to this type from the input type.
Source§impl From<WasiTypeReference> for WasiType
impl From<WasiTypeReference> for WasiType
Source§fn from(value: WasiTypeReference) -> Self
fn from(value: WasiTypeReference) -> Self
Converts to this type from the input type.
Source§impl Ord for WasiType
impl Ord for WasiType
Source§impl PartialOrd for WasiType
impl PartialOrd for WasiType
impl Eq for WasiType
impl StructuralPartialEq for WasiType
Auto Trait Implementations§
impl Freeze for WasiType
impl RefUnwindSafe for WasiType
impl Send for WasiType
impl Sync for WasiType
impl Unpin for WasiType
impl UnwindSafe for WasiType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.