pub struct PVariant {
pub name: PName,
pub attrs: PAttrs,
pub kind: PVariantKind,
pub discriminant: Option<TokenStream>,
}Expand description
Parsed enum variant
Fields§
§name: PNameName of the variant (with rename rules applied)
attrs: PAttrsAttributes of the variant
kind: PVariantKindKind of the variant (unit, tuple, or struct)
discriminant: Option<TokenStream>Optional explicit discriminant (= literal)
Auto Trait Implementations§
impl Freeze for PVariant
impl RefUnwindSafe for PVariant
impl !Send for PVariant
impl !Sync for PVariant
impl Unpin for PVariant
impl UnsafeUnpin for PVariant
impl UnwindSafe for PVariant
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