pub struct Enum { /* private fields */ }Expand description
Enum
Implementations§
Source§impl Enum
impl Enum
pub const fn new( def: Def, source_key: &'static str, variants: &'static [EnumVariant], ty: Type, ) -> Self
pub const fn def(&self) -> &Def
Sourcepub const fn source_key(&self) -> &'static str
pub const fn source_key(&self) -> &'static str
Borrow the immutable enum type source key.
pub const fn variants(&self) -> &'static [EnumVariant]
pub const fn ty(&self) -> &Type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnsafeUnpin for Enum
impl UnwindSafe for Enum
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