#[non_exhaustive]#[repr(C)]pub struct EnumType {
pub repr: Repr,
pub enum_repr: EnumRepr,
pub variants: &'static [Variant],
}Expand description
Fields for enum types
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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
Implementations§
Trait Implementations§
impl Copy for EnumType
impl Eq for EnumType
impl StructuralPartialEq 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