pub struct Variant<'a> {
pub name: &'a str,
pub variant_index: u32,
pub variant: &'a str,
}
Expand description
Information about a serialized enum
variant.
Fields§
§name: &'a str
The name of the outer enum
.
variant_index: u32
The index of this variant within the outer enum
.
variant: &'a str
The name of the inhabited variant within the outer enum
Trait Implementations§
Source§impl<'a> Ord for Variant<'a>
impl<'a> Ord for Variant<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for Variant<'a>
impl<'a> PartialOrd for Variant<'a>
impl<'a> Copy for Variant<'a>
impl<'a> Eq for Variant<'a>
impl<'a> StructuralPartialEq for Variant<'a>
Auto Trait Implementations§
impl<'a> Freeze for Variant<'a>
impl<'a> RefUnwindSafe for Variant<'a>
impl<'a> Send for Variant<'a>
impl<'a> Sync for Variant<'a>
impl<'a> Unpin for Variant<'a>
impl<'a> UnwindSafe for Variant<'a>
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