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