pub enum EnumRepr {
Default,
U8,
U16,
U32,
U64,
USize,
I8,
I16,
I32,
I64,
ISize,
}
Expand description
All possible representations for Rust enums
Variants§
Default
Default representation (compiler-dependent)
U8
u8 representation (#[repr(u8)])
U16
u16 representation (#[repr(u16)])
U32
u32 representation (#[repr(u32)])
U64
u64 representation (#[repr(u64)])
USize
usize representation (#[repr(usize)])
I8
i8 representation (#[repr(i8)])
I16
i16 representation (#[repr(i16)])
I32
i32 representation (#[repr(i32)])
I64
i64 representation (#[repr(i64)])
ISize
isize representation (#[repr(isize)])
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