pub struct UnionDef {
pub name: String,
pub discriminant: Field,
pub cases: Vec<UnionCase>,
pub default: Option<Box<Type>>,
}Expand description
Union definition (discriminated union).
Fields§
§name: String§discriminant: Field§cases: Vec<UnionCase>§default: Option<Box<Type>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnionDef
impl RefUnwindSafe for UnionDef
impl Send for UnionDef
impl Sync for UnionDef
impl Unpin for UnionDef
impl UnwindSafe for UnionDef
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