pub struct EnumDecl {
pub name: String,
pub pos: Pos,
pub params: Vec<TypeParam>,
pub variants: Vec<Variant>,
}Expand description
enum Name<Params> = Variants;
Fields§
§name: StringThe name of the enum.
pos: PosThe position of the name.
params: Vec<TypeParam>The type parameters, which are empty if there are none.
variants: Vec<Variant>The variants, in the order of the file.
Trait Implementations§
impl Eq for EnumDecl
impl StructuralPartialEq for EnumDecl
Auto Trait Implementations§
impl Forget for EnumDecl
impl Freeze for EnumDeclwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeParam>: Freeze,
PhantomData<Variant>: Freeze,
impl Move for EnumDecl
impl RefUnwindSafe for EnumDecl
impl Send for EnumDecl
impl Sync for EnumDecl
impl Unpin for EnumDecl
impl UnsafeUnpin for EnumDeclwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeParam>: UnsafeUnpin,
PhantomData<Variant>: UnsafeUnpin,
impl UnwindSafe for EnumDecl
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