#[repr(u8)]pub enum AllocationKind {
None = 0,
Reg = 1,
Stack = 2,
}
Expand description
An allocation is one of two “kinds” (or “none”): register or spillslot/stack.
Variants§
Trait Implementations§
source§impl Clone for AllocationKind
impl Clone for AllocationKind
source§fn clone(&self) -> AllocationKind
fn clone(&self) -> AllocationKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AllocationKind
impl Debug for AllocationKind
source§impl Hash for AllocationKind
impl Hash for AllocationKind
source§impl Ord for AllocationKind
impl Ord for AllocationKind
source§fn cmp(&self, other: &AllocationKind) -> Ordering
fn cmp(&self, other: &AllocationKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AllocationKind
impl PartialEq for AllocationKind
source§impl PartialOrd for AllocationKind
impl PartialOrd for AllocationKind
impl Copy for AllocationKind
impl Eq for AllocationKind
impl StructuralPartialEq for AllocationKind
Auto Trait Implementations§
impl Freeze for AllocationKind
impl RefUnwindSafe for AllocationKind
impl Send for AllocationKind
impl Sync for AllocationKind
impl Unpin for AllocationKind
impl UnwindSafe for AllocationKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)