Struct cretonne_codegen::ir::entities::StackSlot
[−]
[src]
pub struct StackSlot(_);
An opaque reference to a stack slot.
Methods
impl StackSlot
[src]
pub fn with_number(n: u32) -> Option<Self>
[src]
Create a new stack slot reference from its number.
This method is for use by the parser.
Trait Implementations
impl Copy for StackSlot
[src]
impl Clone for StackSlot
[src]
fn clone(&self) -> StackSlot
[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 PartialEq for StackSlot
[src]
fn eq(&self, __arg_0: &StackSlot) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StackSlot) -> bool
[src]
This method tests for !=
.
impl Eq for StackSlot
[src]
impl Hash for StackSlot
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl EntityRef for StackSlot
fn new(index: 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
Get the index that was used to create this entity reference.
impl ReservedValue for StackSlot
fn reserved_value() -> StackSlot
Create an instance of the reserved value.
impl Display for StackSlot
impl Debug for StackSlot
impl From<StackSlot> for AnyEntity
[src]
impl Index<StackSlot> for StackSlots
[src]
type Output = StackSlotData
The returned type after indexing.
fn index(&self, ss: StackSlot) -> &StackSlotData
[src]
Performs the indexing (container[index]
) operation.
impl IndexMut<StackSlot> for StackSlots
[src]
fn index_mut(&mut self, ss: StackSlot) -> &mut StackSlotData
[src]
Performs the mutable indexing (container[index]
) operation.