pub struct Variant<'a> {
pub cases: Vec<VariantCase<'a>>,
}
Expand description
A variant defined type.
Fields§
§cases: Vec<VariantCase<'a>>
The cases of the variant type.
Trait Implementations§
Auto Trait Implementations§
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