Struct nyar_wasm::WasiVariantType
source · pub struct WasiVariantType {
pub symbol: Identifier,
pub wasi_name: String,
pub variants: IndexMap<Arc<str>, WasiVariantItem>,
}Fields§
§symbol: IdentifierVariant name in language
wasi_name: String§variants: IndexMap<Arc<str>, WasiVariantItem>Implementations§
source§impl WasiVariantType
impl WasiVariantType
pub fn new<S>(name: S) -> Selfwhere
S: Into<Identifier>,
sourcepub fn with_wasi_name<S>(self, wasi_name: S) -> Self
pub fn with_wasi_name<S>(self, wasi_name: S) -> Self
Custom wasi name for the variant type
Trait Implementations§
source§impl AddAssign<WasiVariantItem> for WasiVariantType
impl AddAssign<WasiVariantItem> for WasiVariantType
source§fn add_assign(&mut self, rhs: WasiVariantItem)
fn add_assign(&mut self, rhs: WasiVariantItem)
Performs the
+= operation. Read moresource§impl AddAssign for WasiVariantType
impl AddAssign for WasiVariantType
source§fn add_assign(&mut self, rhs: WasiVariantType)
fn add_assign(&mut self, rhs: WasiVariantType)
Performs the
+= operation. Read moresource§impl Clone for WasiVariantType
impl Clone for WasiVariantType
source§fn clone(&self) -> WasiVariantType
fn clone(&self) -> WasiVariantType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for WasiVariantType
impl Debug for WasiVariantType
source§impl Hash for WasiVariantType
impl Hash for WasiVariantType
source§impl Ord for WasiVariantType
impl Ord for WasiVariantType
source§impl PartialEq for WasiVariantType
impl PartialEq for WasiVariantType
source§impl PartialOrd for WasiVariantType
impl PartialOrd for WasiVariantType
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 WasiVariantType
Auto Trait Implementations§
impl RefUnwindSafe for WasiVariantType
impl Send for WasiVariantType
impl Sync for WasiVariantType
impl Unpin for WasiVariantType
impl UnwindSafe for WasiVariantType
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.