Struct cretonne_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]
fn clone(&self) -> RegClassIndex
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for RegClassIndex
[src]
impl Debug for RegClassIndex
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for RegClassIndex
[src]
fn eq(&self, __arg_0: &RegClassIndex) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RegClassIndex) -> bool
[src]
This method tests for !=
.
impl Eq for RegClassIndex
[src]
impl EntityRef for RegClassIndex
[src]
fn new(idx: usize) -> Self
[src]
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]
Get the index that was used to create this entity reference.