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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more