Enum regalloc2::AllocationKind
source · #[repr(u8)]
pub enum AllocationKind {
None,
Reg,
Stack,
}
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<AllocationKind> for AllocationKind
impl PartialEq<AllocationKind> for AllocationKind
source§fn eq(&self, other: &AllocationKind) -> bool
fn eq(&self, other: &AllocationKind) -> bool
source§impl PartialOrd<AllocationKind> for AllocationKind
impl PartialOrd<AllocationKind> 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 more