Struct cranelift_codegen::ir::entities::StackSlot [−][src]
pub struct StackSlot(_);
An opaque reference to a stack slot.
Methods
impl StackSlot[src]
impl StackSlotpub fn with_number(n: u32) -> Option<Self>[src]
pub fn with_number(n: u32) -> Option<Self>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 Copy for StackSlotimpl Clone for StackSlot[src]
impl Clone for StackSlotfn clone(&self) -> StackSlot[src]
fn clone(&self) -> StackSlotReturns 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)Performs copy-assignment from source. Read more
impl PartialEq for StackSlot[src]
impl PartialEq for StackSlotfn eq(&self, other: &StackSlot) -> bool[src]
fn eq(&self, other: &StackSlot) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &StackSlot) -> bool[src]
fn ne(&self, other: &StackSlot) -> boolThis method tests for !=.
impl Eq for StackSlot[src]
impl Eq for StackSlotimpl Hash for StackSlot[src]
impl Hash for StackSlotfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl EntityRef for StackSlot
impl EntityRef for StackSlotfn new(index: usize) -> Self
fn new(index: usize) -> SelfCreate a new entity reference from a small integer. This should crash if the requested index is not representable. Read more
fn index(self) -> usize
fn index(self) -> usizeGet the index that was used to create this entity reference.
impl ReservedValue for StackSlot
impl ReservedValue for StackSlotfn reserved_value() -> StackSlot
fn reserved_value() -> StackSlotCreate an instance of the reserved value.
impl Display for StackSlot
impl Display for StackSlotimpl Debug for StackSlot
impl Debug for StackSlotimpl From<StackSlot> for AnyEntity[src]
impl From<StackSlot> for AnyEntityimpl Index<StackSlot> for StackSlots[src]
impl Index<StackSlot> for StackSlotstype Output = StackSlotData
The returned type after indexing.
fn index(&self, ss: StackSlot) -> &StackSlotData[src]
fn index(&self, ss: StackSlot) -> &StackSlotDataPerforms the indexing (container[index]) operation.
impl IndexMut<StackSlot> for StackSlots[src]
impl IndexMut<StackSlot> for StackSlotsfn index_mut(&mut self, ss: StackSlot) -> &mut StackSlotData[src]
fn index_mut(&mut self, ss: StackSlot) -> &mut StackSlotDataPerforms the mutable indexing (container[index]) operation.