pub struct StackSlotKey(/* private fields */);
Expand description
An opaque key uniquely identifying a stack slot.
Implementations§
Source§impl StackSlotKey
impl StackSlotKey
Sourcepub fn new(value: u64) -> StackSlotKey
pub fn new(value: u64) -> StackSlotKey
Construct a StackSlotKey
from raw bits.
An embedder can use any 64-bit value to describe a stack slot; there are no restrictions, and the value does not mean anything to Cranelift itself.
Sourcepub fn bits(&self) -> u64
pub fn bits(&self) -> u64
Get the raw bits from the StackSlotKey
.
Trait Implementations§
Source§impl Clone for StackSlotKey
impl Clone for StackSlotKey
Source§fn clone(&self) -> StackSlotKey
fn clone(&self) -> StackSlotKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StackSlotKey
impl Debug for StackSlotKey
Source§impl<'de> Deserialize<'de> for StackSlotKey
impl<'de> Deserialize<'de> for StackSlotKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StackSlotKey
impl Hash for StackSlotKey
Source§impl PartialEq for StackSlotKey
impl PartialEq for StackSlotKey
Source§impl Serialize for StackSlotKey
impl Serialize for StackSlotKey
impl Copy for StackSlotKey
impl Eq for StackSlotKey
impl StructuralPartialEq for StackSlotKey
Auto Trait Implementations§
impl Freeze for StackSlotKey
impl RefUnwindSafe for StackSlotKey
impl Send for StackSlotKey
impl Sync for StackSlotKey
impl Unpin for StackSlotKey
impl UnwindSafe for StackSlotKey
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.