Enum regalloc2::AllocationKind
source · #[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§fn eq(&self, other: &AllocationKind) -> bool
fn eq(&self, other: &AllocationKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AllocationKind
impl PartialOrd for AllocationKind
source§fn partial_cmp(&self, other: &AllocationKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AllocationKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)