pub struct PEnum {
pub container: PContainer,
pub variants: Vec<PVariant>,
pub repr: PRepr,
}Expand description
Parsed enum (given attributes etc.)
Fields§
§container: PContainerContainer information
variants: Vec<PVariant>The variants of the enum, in parsed form
repr: PReprThe representation (repr) for the enum (e.g., C, u8, etc.)
Implementations§
Auto Trait Implementations§
impl Freeze for PEnum
impl RefUnwindSafe for PEnum
impl !Send for PEnum
impl !Sync for PEnum
impl Unpin for PEnum
impl UnwindSafe for PEnum
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