Struct cranelift_codegen::isa::registers::RegClassIndex [−][src]
pub struct RegClassIndex(_);
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
impl Clone for RegClassIndex
[src]
impl Clone for RegClassIndex
fn clone(&self) -> RegClassIndex
[src]
fn clone(&self) -> RegClassIndex
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for RegClassIndex
[src]
impl Copy for RegClassIndex
impl Debug for RegClassIndex
[src]
impl Debug for RegClassIndex
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RegClassIndex
[src]
impl PartialEq for RegClassIndex
fn eq(&self, other: &RegClassIndex) -> bool
[src]
fn eq(&self, other: &RegClassIndex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RegClassIndex) -> bool
[src]
fn ne(&self, other: &RegClassIndex) -> bool
This method tests for !=
.
impl Eq for RegClassIndex
[src]
impl Eq for RegClassIndex
impl EntityRef for RegClassIndex
[src]
impl EntityRef for RegClassIndex
fn new(idx: usize) -> Self
[src]
fn new(idx: usize) -> Self
Create a new entity reference from a small integer. This should crash if the requested index is not representable. Read more
fn index(self) -> usize
[src]
fn index(self) -> usize
Get the index that was used to create this entity reference.
impl From<RegClass> for RegClassIndex
[src]
impl From<RegClass> for RegClassIndex
impl Display for RegClassIndex
[src]
impl Display for RegClassIndex
Auto Trait Implementations
impl Send for RegClassIndex
impl Send for RegClassIndex
impl Sync for RegClassIndex
impl Sync for RegClassIndex