pub struct Variant<'resolver, Fields> {
pub index: u8,
pub name: &'resolver str,
pub fields: Fields,
}
Expand description
Information about a specific variant type.
Fields§
§index: u8
The variant index.
name: &'resolver str
The variant name.
fields: Fields
The fields contained within this variant.
Trait Implementations§
Auto Trait Implementations§
impl<'resolver, Fields> Freeze for Variant<'resolver, Fields>where
Fields: Freeze,
impl<'resolver, Fields> RefUnwindSafe for Variant<'resolver, Fields>where
Fields: RefUnwindSafe,
impl<'resolver, Fields> Send for Variant<'resolver, Fields>where
Fields: Send,
impl<'resolver, Fields> Sync for Variant<'resolver, Fields>where
Fields: Sync,
impl<'resolver, Fields> Unpin for Variant<'resolver, Fields>where
Fields: Unpin,
impl<'resolver, Fields> UnwindSafe for Variant<'resolver, Fields>where
Fields: UnwindSafe,
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