Enum wast_encoder::WasiType
source · pub enum WasiType {
Integer8 {
signed: bool,
},
Integer16 {
signed: bool,
},
Integer32 {
signed: bool,
},
Integer64 {
signed: bool,
},
Option {
inner: Box<WasiType>,
},
Result {
success: Option<Box<WasiType>>,
failure: Option<Box<WasiType>>,
},
Resource(WasiResource),
Variant(WasiVariantType),
TypeHandler {
name: Identifier,
own: bool,
},
Array(Box<WasiArrayType>),
TypeAlias {
name: Identifier,
},
External(Box<ExternalFunction>),
}
Variants§
Integer8
Integer16
Integer32
Integer64
Option
Result
Resource(WasiResource)
Variant(WasiVariantType)
TypeHandler
Array(Box<WasiArrayType>)
TypeAlias
Fields
§
name: Identifier
Type language name
A referenced type, the real type needs to be found later
External(Box<ExternalFunction>)
Implementations§
source§impl WasiType
impl WasiType
pub fn wasm_module(&self) -> Option<&WasiModule>
pub fn language_id(&self) -> Option<&Identifier>
Trait Implementations§
source§impl AddAssign<WasiType> for ExternalFunction
impl AddAssign<WasiType> for ExternalFunction
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 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 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.