Struct StackSlotData
pub struct StackSlotData {
pub kind: StackSlotKind,
pub size: u32,
pub align_shift: u8,
}
Expand description
Contents of a stack slot.
Fields§
§kind: StackSlotKind
The kind of stack slot.
size: u32
Size of stack slot in bytes.
align_shift: u8
Alignment of stack slot as a power-of-two exponent (log2 value). The stack slot will be at least this aligned; it may be aligned according to other considerations, such as minimum stack slot size or machine word size, as well.
Implementations§
§impl StackSlotData
impl StackSlotData
pub fn new(kind: StackSlotKind, size: u32, align_shift: u8) -> StackSlotData
pub fn new(kind: StackSlotKind, size: u32, align_shift: u8) -> StackSlotData
Create a stack slot with the specified byte size and alignment.
Trait Implementations§
§impl Clone for StackSlotData
impl Clone for StackSlotData
§fn clone(&self) -> StackSlotData
fn clone(&self) -> StackSlotData
Returns a copy 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 more§impl Debug for StackSlotData
impl Debug for StackSlotData
§impl<'de> Deserialize<'de> for StackSlotData
impl<'de> Deserialize<'de> for StackSlotData
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StackSlotData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for StackSlotData
impl Display for StackSlotData
§impl Hash for StackSlotData
impl Hash for StackSlotData
§impl PartialEq for StackSlotData
impl PartialEq for StackSlotData
§impl Serialize for StackSlotData
impl Serialize for StackSlotData
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for StackSlotData
impl StructuralPartialEq for StackSlotData
Auto Trait Implementations§
impl Freeze for StackSlotData
impl RefUnwindSafe for StackSlotData
impl Send for StackSlotData
impl Sync for StackSlotData
impl Unpin for StackSlotData
impl UnwindSafe for StackSlotData
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.