#[repr(C)]pub enum VariantAttribute<'shape> {
Arbitrary(&'shape str),
}Expand description
An attribute that can be set on an enum variant
Variants§
Trait Implementations§
Source§impl<'shape> Clone for VariantAttribute<'shape>
impl<'shape> Clone for VariantAttribute<'shape>
Source§fn clone(&self) -> VariantAttribute<'shape>
fn clone(&self) -> VariantAttribute<'shape>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'shape> Debug for VariantAttribute<'shape>
impl<'shape> Debug for VariantAttribute<'shape>
Source§impl<'shape> Hash for VariantAttribute<'shape>
impl<'shape> Hash for VariantAttribute<'shape>
Source§impl<'shape> PartialEq for VariantAttribute<'shape>
impl<'shape> PartialEq for VariantAttribute<'shape>
Source§fn eq(&self, other: &VariantAttribute<'shape>) -> bool
fn eq(&self, other: &VariantAttribute<'shape>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'shape> Copy for VariantAttribute<'shape>
impl<'shape> Eq for VariantAttribute<'shape>
impl<'shape> StructuralPartialEq for VariantAttribute<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for VariantAttribute<'shape>
impl<'shape> RefUnwindSafe for VariantAttribute<'shape>
impl<'shape> Send for VariantAttribute<'shape>
impl<'shape> Sync for VariantAttribute<'shape>
impl<'shape> Unpin for VariantAttribute<'shape>
impl<'shape> UnwindSafe for VariantAttribute<'shape>
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