pub struct SumType {
pub def_id: DefId,
pub name: String,
pub generics: u32,
pub variants: Vec<Variant>,
}Expand description
A sum type declaration with typed variant payloads.
Fields§
§def_id: DefId§name: String§generics: u32Number of generic parameters.
variants: Vec<Variant>Trait Implementations§
Auto Trait Implementations§
impl Freeze for SumType
impl RefUnwindSafe for SumType
impl Send for SumType
impl Sync for SumType
impl Unpin for SumType
impl UnsafeUnpin for SumType
impl UnwindSafe for SumType
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