pub struct DynamicStackSlot(/* private fields */);
Expand description
An opaque reference to a dynamic stack slot.
Implementations§
Source§impl DynamicStackSlot
impl DynamicStackSlot
Sourcepub fn as_bits(self) -> u32
pub fn as_bits(self) -> u32
Return the raw bit encoding for this instance.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be passed to from_bits
.
Sourcepub fn from_bits(x: u32) -> Self
pub fn from_bits(x: u32) -> Self
Create a new instance from the raw bit encoding.
Warning: the raw bit encoding is opaque and has no
guaranteed correspondence to the entity’s index. It encodes the
entire state of this index value: either a valid index or an
invalid-index sentinel. The value returned by this method should
only be given bits from as_bits
.
Source§impl DynamicStackSlot
impl DynamicStackSlot
Sourcepub fn with_number(n: u32) -> Option<Self>
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§
Source§impl Clone for DynamicStackSlot
impl Clone for DynamicStackSlot
Source§fn clone(&self) -> DynamicStackSlot
fn clone(&self) -> DynamicStackSlot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DynamicStackSlot
impl Debug for DynamicStackSlot
Source§impl Display for DynamicStackSlot
impl Display for DynamicStackSlot
Source§impl EntityRef for DynamicStackSlot
impl EntityRef for DynamicStackSlot
Source§impl From<DynamicStackSlot> for AnyEntity
impl From<DynamicStackSlot> for AnyEntity
Source§fn from(r: DynamicStackSlot) -> Self
fn from(r: DynamicStackSlot) -> Self
Source§impl Hash for DynamicStackSlot
impl Hash for DynamicStackSlot
Source§impl Ord for DynamicStackSlot
impl Ord for DynamicStackSlot
Source§fn cmp(&self, other: &DynamicStackSlot) -> Ordering
fn cmp(&self, other: &DynamicStackSlot) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DynamicStackSlot
impl PartialEq for DynamicStackSlot
Source§impl PartialOrd for DynamicStackSlot
impl PartialOrd for DynamicStackSlot
Source§impl ReservedValue for DynamicStackSlot
impl ReservedValue for DynamicStackSlot
Source§fn reserved_value() -> DynamicStackSlot
fn reserved_value() -> DynamicStackSlot
Source§fn is_reserved_value(&self) -> bool
fn is_reserved_value(&self) -> bool
impl Copy for DynamicStackSlot
impl Eq for DynamicStackSlot
impl StructuralPartialEq for DynamicStackSlot
Auto Trait Implementations§
impl Freeze for DynamicStackSlot
impl RefUnwindSafe for DynamicStackSlot
impl Send for DynamicStackSlot
impl Sync for DynamicStackSlot
impl Unpin for DynamicStackSlot
impl UnwindSafe for DynamicStackSlot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.