Struct wast_encoder::VariantItem
source · pub struct VariantItem {
pub symbol: Arc<str>,
pub wasi_name: String,
pub fields: Option<WasiType>,
}
Fields§
§symbol: Arc<str>
Variant name in language
wasi_name: String
§fields: Option<WasiType>
Implementations§
Trait Implementations§
source§impl AddAssign<VariantItem> for WasiVariantType
impl AddAssign<VariantItem> for WasiVariantType
source§fn add_assign(&mut self, rhs: VariantItem)
fn add_assign(&mut self, rhs: VariantItem)
Performs the
+=
operation. Read moresource§impl Clone for VariantItem
impl Clone for VariantItem
source§fn clone(&self) -> VariantItem
fn clone(&self) -> VariantItem
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 VariantItem
impl Debug for VariantItem
source§impl Hash for VariantItem
impl Hash for VariantItem
source§impl Ord for VariantItem
impl Ord for VariantItem
source§fn cmp(&self, other: &VariantItem) -> Ordering
fn cmp(&self, other: &VariantItem) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for VariantItem
impl PartialEq for VariantItem
source§fn eq(&self, other: &VariantItem) -> bool
fn eq(&self, other: &VariantItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VariantItem
impl PartialOrd for VariantItem
source§fn partial_cmp(&self, other: &VariantItem) -> Option<Ordering>
fn partial_cmp(&self, other: &VariantItem) -> Option<Ordering>
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 VariantItem
impl StructuralPartialEq for VariantItem
Auto Trait Implementations§
impl RefUnwindSafe for VariantItem
impl Send for VariantItem
impl Sync for VariantItem
impl Unpin for VariantItem
impl UnwindSafe for VariantItem
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.