Struct wasmflow_interface::EnumVariant
source · [−]Expand description
An enum variant definition
Fields
name: String
The name of the variant.
index: u32
The index of the variant.
Implementations
sourceimpl EnumVariant
impl EnumVariant
Trait Implementations
sourceimpl Clone for EnumVariant
impl Clone for EnumVariant
sourcefn clone(&self) -> EnumVariant
fn clone(&self) -> EnumVariant
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnumVariant
impl Debug for EnumVariant
sourceimpl Default for EnumVariant
impl Default for EnumVariant
sourcefn default() -> EnumVariant
fn default() -> EnumVariant
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EnumVariant
impl<'de> Deserialize<'de> for EnumVariant
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<EnumVariant> for EnumVariant
impl PartialEq<EnumVariant> for EnumVariant
sourcefn eq(&self, other: &EnumVariant) -> bool
fn eq(&self, other: &EnumVariant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnumVariant) -> bool
fn ne(&self, other: &EnumVariant) -> bool
This method tests for !=
.
sourceimpl Serialize for EnumVariant
impl Serialize for EnumVariant
impl StructuralPartialEq for EnumVariant
Auto Trait Implementations
impl RefUnwindSafe for EnumVariant
impl Send for EnumVariant
impl Sync for EnumVariant
impl Unpin for EnumVariant
impl UnwindSafe for EnumVariant
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more