#[non_exhaustive]#[repr(C)]pub enum VariantAttribute<'shape> {
Arbitrary(&'shape str),
}Expand description
An attribute that can be set on an enum variant
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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§fn clone_from(&mut self, source: &Self)
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>
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