Struct postcard::experimental::schema::NamedVariant
source · [−]Expand description
An enum variant with a name, e.g. T::Bar(...)
Fields
name: &'static str
The name of this variant
ty: &'static SdmTy
The type of this variant
Trait Implementations
sourceimpl Clone for NamedVariant
impl Clone for NamedVariant
sourcefn clone(&self) -> NamedVariant
fn clone(&self) -> NamedVariant
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 NamedVariant
impl Debug for NamedVariant
sourceimpl Hash for NamedVariant
impl Hash for NamedVariant
sourceimpl PartialEq<NamedVariant> for NamedVariant
impl PartialEq<NamedVariant> for NamedVariant
sourcefn eq(&self, other: &NamedVariant) -> bool
fn eq(&self, other: &NamedVariant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NamedVariant) -> bool
fn ne(&self, other: &NamedVariant) -> bool
This method tests for !=
.
sourceimpl Serialize for NamedVariant
impl Serialize for NamedVariant
impl Eq for NamedVariant
impl StructuralEq for NamedVariant
impl StructuralPartialEq for NamedVariant
Auto Trait Implementations
impl RefUnwindSafe for NamedVariant
impl Send for NamedVariant
impl Sync for NamedVariant
impl Unpin for NamedVariant
impl UnwindSafe for NamedVariant
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