#[repr(C)]pub enum EnumRepr {
RustNPO = 0,
U8 = 1,
U16 = 2,
U32 = 3,
U64 = 4,
USize = 5,
I8 = 6,
I16 = 7,
I32 = 8,
I64 = 9,
ISize = 10,
}
Expand description
All possible representations for Rust enums — ie. the type/size of the discriminant
Variants§
RustNPO = 0
Special-case representation discriminated by zeros under non-nullable pointer
U8 = 1
u8 representation (#[repr(u8)])
U16 = 2
u16 representation (#[repr(u16)])
U32 = 3
u32 representation (#[repr(u32)])
U64 = 4
u64 representation (#[repr(u64)])
USize = 5
usize representation (#[repr(usize)])
I8 = 6
i8 representation (#[repr(i8)])
I16 = 7
i16 representation (#[repr(i16)])
I32 = 8
i32 representation (#[repr(i32)])
I64 = 9
i64 representation (#[repr(i64)])
ISize = 10
isize representation (#[repr(isize)])
Implementations§
Trait Implementations§
impl Copy for EnumRepr
impl Eq for EnumRepr
impl StructuralPartialEq for EnumRepr
Auto Trait Implementations§
impl Freeze for EnumRepr
impl RefUnwindSafe for EnumRepr
impl Send for EnumRepr
impl Sync for EnumRepr
impl Unpin for EnumRepr
impl UnwindSafe for EnumRepr
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