pub struct VariantDef {
pub name: String,
pub span: Span,
pub arity: usize,
}Expand description
One variant of a sum type.
Fields§
§name: String§span: Span§arity: usizeNumber of payload fields (types live in the AST, indexed by the parent).
Trait Implementations§
Source§impl Clone for VariantDef
impl Clone for VariantDef
Auto Trait Implementations§
impl Freeze for VariantDef
impl RefUnwindSafe for VariantDef
impl Send for VariantDef
impl Sync for VariantDef
impl Unpin for VariantDef
impl UnsafeUnpin for VariantDef
impl UnwindSafe for VariantDef
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