pub struct Variant {
pub docs: Vec<Doc>,
pub name: Ident,
pub payload: VariantPayload,
pub span: Span,
}Expand description
A variant of an enum.
Fields§
§docs: Vec<Doc>Doc comments.
name: IdentThe name.
payload: VariantPayloadThe payload.
span: SpanThe whole variant.
Trait Implementations§
impl StructuralPartialEq for Variant
Auto Trait Implementations§
impl Freeze for Variant
impl RefUnwindSafe for Variant
impl Send for Variant
impl Sync for Variant
impl Unpin for Variant
impl UnsafeUnpin for Variant
impl UnwindSafe for Variant
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