pub enum WasiType {
Show 16 variants
Boolean,
Unicode,
Integer8 {
signed: bool,
},
Integer16 {
signed: bool,
},
Integer32 {
signed: bool,
},
Integer64 {
signed: bool,
},
Float32,
Float64,
Option {
inner: Box<WasiType>,
},
Result {
success: Option<Box<WasiType>>,
failure: Option<Box<WasiType>>,
},
Resource(WasiResource),
Record(WasiRecordType),
Variant(WasiVariantType),
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
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
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<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 PartialEq for WasiType
impl PartialEq for WasiType
source§impl PartialOrd for WasiType
impl PartialOrd for WasiType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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<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.