Struct cranelift_codegen::ir::stackslot::StackSlotData [−][src]
pub struct StackSlotData { pub kind: StackSlotKind, pub size: StackSize, pub offset: Option<StackOffset>, }
Expand description
Contents of a stack slot.
Fields
kind: StackSlotKind
The kind of stack slot.
size: StackSize
Size of stack slot in bytes.
offset: Option<StackOffset>
Offset of stack slot relative to the stack pointer in the caller.
On x86, the base address is the stack pointer before the return address was pushed. On RISC ISAs, the base address is the value of the stack pointer on entry to the function.
For OutgoingArg
stack slots, the offset is relative to the current function’s stack
pointer immediately before the call.
Implementations
impl StackSlotData
[src]
impl StackSlotData
[src]Trait Implementations
impl Clone for StackSlotData
[src]
impl Clone for StackSlotData
[src]fn clone(&self) -> StackSlotData
[src]
fn clone(&self) -> StackSlotData
[src]Returns 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)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for StackSlotData
[src]
impl Debug for StackSlotData
[src]impl Display for StackSlotData
[src]
impl Display for StackSlotData
[src]impl PartialEq<StackSlotData> for StackSlotData
[src]
impl PartialEq<StackSlotData> for StackSlotData
[src]fn eq(&self, other: &StackSlotData) -> bool
[src]
fn eq(&self, other: &StackSlotData) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &StackSlotData) -> bool
[src]
fn ne(&self, other: &StackSlotData) -> bool
[src]This method tests for !=
.
impl Eq for StackSlotData
[src]
impl StructuralEq for StackSlotData
[src]
impl StructuralPartialEq for StackSlotData
[src]
Auto Trait Implementations
impl RefUnwindSafe for StackSlotData
impl Send for StackSlotData
impl Sync for StackSlotData
impl Unpin for StackSlotData
impl UnwindSafe for StackSlotData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more