pub struct StackSlot(/* private fields */);Expand description
A stack slot of a function: a local, a spill slot, or an incoming
stack argument. Printed ssN.
§Examples
use backend_lang::mir::{Function, SlotKind};
use backend_lang::x86_64::SYSV;
let mut f = Function::new("f", &SYSV);
let s = f.stack_slot(SlotKind::Local { size: 8, align: 8 })?;
assert_eq!(s.to_string(), "ss0");Implementations§
Trait Implementations§
impl Copy for StackSlot
impl Eq for StackSlot
Source§impl Ord for StackSlot
impl Ord for StackSlot
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for StackSlot
impl PartialOrd for StackSlot
impl StructuralPartialEq for StackSlot
Auto Trait Implementations§
impl Freeze for StackSlot
impl RefUnwindSafe for StackSlot
impl Send for StackSlot
impl Sync for StackSlot
impl Unpin for StackSlot
impl UnsafeUnpin for StackSlot
impl UnwindSafe for StackSlot
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