#[repr(u8)]pub enum AllocationType {
Boolean = 0,
Byte = 1,
Char = 2,
Short = 3,
Int = 4,
Long = 5,
Float = 6,
Double = 7,
Reference = 8,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AllocationType
impl Clone for AllocationType
impl Copy for AllocationType
Source§impl Debug for AllocationType
impl Debug for AllocationType
impl Eq for AllocationType
Source§impl PartialEq for AllocationType
impl PartialEq for AllocationType
impl StructuralPartialEq for AllocationType
Source§impl TryFrom<u8> for AllocationType
impl TryFrom<u8> for AllocationType
Source§type Error = TryFromPrimitiveError<AllocationType>
type Error = TryFromPrimitiveError<AllocationType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for AllocationType
impl TryFromPrimitive for AllocationType
const NAME: &'static str = "AllocationType"
type Primitive = u8
type Error = TryFromPrimitiveError<AllocationType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for AllocationType
impl RefUnwindSafe for AllocationType
impl Send for AllocationType
impl Sync for AllocationType
impl Unpin for AllocationType
impl UnsafeUnpin for AllocationType
impl UnwindSafe for AllocationType
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