pub struct SlotData {
pub size: u32,
pub align: u32,
}Expand description
The size and alignment of a stack slot, in bytes.
§Examples
use ir_lang::SlotData;
let s = SlotData { size: 16, align: 8 };
assert_eq!(s.size, 16);Fields§
§size: u32Size in bytes.
align: u32Alignment in bytes (a power of two, at most 2^16).
Implementations§
Trait Implementations§
impl Copy for SlotData
impl Eq for SlotData
impl StructuralPartialEq for SlotData
Auto Trait Implementations§
impl Freeze for SlotData
impl RefUnwindSafe for SlotData
impl Send for SlotData
impl Sync for SlotData
impl Unpin for SlotData
impl UnsafeUnpin for SlotData
impl UnwindSafe for SlotData
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