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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moreimpl Copy for AllocationKind
impl Eq for AllocationKind
impl StructuralEq for AllocationKind
impl StructuralPartialEq for AllocationKind
Auto Trait Implementations§
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