Struct type_enum::TypeVariant
source · pub struct TypeVariant<D: TypeEnumDescriptor>(/* private fields */);Expand description
Represents a type variant in a type list.
Implementations§
source§impl<D: TypeEnumDescriptor> TypeVariant<D>
impl<D: TypeEnumDescriptor> TypeVariant<D>
Trait Implementations§
source§impl<D: Clone + TypeEnumDescriptor> Clone for TypeVariant<D>
impl<D: Clone + TypeEnumDescriptor> Clone for TypeVariant<D>
source§fn clone(&self) -> TypeVariant<D>
fn clone(&self) -> TypeVariant<D>
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<D: TypeEnumDescriptor> Debug for TypeVariant<D>
impl<D: TypeEnumDescriptor> Debug for TypeVariant<D>
source§impl<D: TypeEnumDescriptor> Hash for TypeVariant<D>
impl<D: TypeEnumDescriptor> Hash for TypeVariant<D>
source§impl<D: TypeEnumDescriptor> Ord for TypeVariant<D>
impl<D: TypeEnumDescriptor> Ord for TypeVariant<D>
source§impl<D: TypeEnumDescriptor> PartialEq for TypeVariant<D>
impl<D: TypeEnumDescriptor> PartialEq for TypeVariant<D>
source§impl<D: TypeEnumDescriptor> PartialOrd for TypeVariant<D>
impl<D: TypeEnumDescriptor> PartialOrd for TypeVariant<D>
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<D: Copy + TypeEnumDescriptor> Copy for TypeVariant<D>
impl<D: TypeEnumDescriptor> Eq for TypeVariant<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for TypeVariant<D>
impl<D> Send for TypeVariant<D>
impl<D> Sync for TypeVariant<D>
impl<D> Unpin for TypeVariant<D>
impl<D> UnwindSafe for TypeVariant<D>
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