Struct cranelift_codegen::isa::registers::RegClassIndex
source · [−]pub struct RegClassIndex(_);
Expand description
A small reference to a register class.
Use this when storing register classes in compact data structures. The RegInfo::rc()
method
can be used to get the real register class reference back.
Trait Implementations
sourceimpl Clone for RegClassIndex
impl Clone for RegClassIndex
sourcefn clone(&self) -> RegClassIndex
fn clone(&self) -> RegClassIndex
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 more
sourceimpl Debug for RegClassIndex
impl Debug for RegClassIndex
sourceimpl Display for RegClassIndex
impl Display for RegClassIndex
sourceimpl EntityRef for RegClassIndex
impl EntityRef for RegClassIndex
sourceimpl From<&'static RegClassData> for RegClassIndex
impl From<&'static RegClassData> for RegClassIndex
sourceimpl PartialEq<RegClassIndex> for RegClassIndex
impl PartialEq<RegClassIndex> for RegClassIndex
sourcefn eq(&self, other: &RegClassIndex) -> bool
fn eq(&self, other: &RegClassIndex) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RegClassIndex) -> bool
fn ne(&self, other: &RegClassIndex) -> bool
This method tests for !=
.
impl Copy for RegClassIndex
impl Eq for RegClassIndex
impl StructuralEq for RegClassIndex
impl StructuralPartialEq for RegClassIndex
Auto Trait Implementations
impl RefUnwindSafe for RegClassIndex
impl Send for RegClassIndex
impl Sync for RegClassIndex
impl Unpin for RegClassIndex
impl UnwindSafe for RegClassIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> SparseMapValue<T> for T where
T: EntityRef,
impl<T> SparseMapValue<T> for T where
T: EntityRef,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more