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
None
Reg
Stack
Trait Implementations
sourceimpl Clone for AllocationKind
impl Clone for AllocationKind
sourcefn clone(&self) -> AllocationKind
fn clone(&self) -> AllocationKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AllocationKind
impl Debug for AllocationKind
sourceimpl Hash for AllocationKind
impl Hash for AllocationKind
sourceimpl Ord for AllocationKind
impl Ord for AllocationKind
sourcefn cmp(&self, other: &AllocationKind) -> Ordering
fn cmp(&self, other: &AllocationKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AllocationKind> for AllocationKind
impl PartialEq<AllocationKind> for AllocationKind
sourcefn eq(&self, other: &AllocationKind) -> bool
fn eq(&self, other: &AllocationKind) -> bool
sourceimpl PartialOrd<AllocationKind> for AllocationKind
impl PartialOrd<AllocationKind> for AllocationKind
sourcefn partial_cmp(&self, other: &AllocationKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AllocationKind) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more