pub struct UnionDef {
pub name: String,
pub variants: Vec<UnionVariant>,
pub source: Option<SourceLocation>,
}Expand description
A union type definition Example:
union Message {
Get { response-chan: Int }
Increment { response-chan: Int }
Report { op: Int, delta: Int, total: Int }
}Fields§
§name: String§variants: Vec<UnionVariant>§source: Option<SourceLocation>Trait Implementations§
impl StructuralPartialEq for UnionDef
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