#[repr(C)]pub struct EnumType {
pub repr: Repr,
pub enum_repr: EnumRepr,
pub variants: &'static [Variant],
}
Expand description
Fields for enum types
Fields§
§repr: Repr
Representation of the enum’s data
enum_repr: EnumRepr
representation of the enum’s discriminant (u8, u16, etc.)
variants: &'static [Variant]
all variants for this enum
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumType
impl RefUnwindSafe for EnumType
impl Send for EnumType
impl Sync for EnumType
impl Unpin for EnumType
impl UnwindSafe for EnumType
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