pub enum StackArgs {
RegisterSized,
Packed,
}Expand description
How arguments that did not get a register sit in the argument area.
Variants§
RegisterSized
Each argument occupies a whole number of registers’ worth of the argument area, so a
char takes eight bytes. Every ELF ABI here.
Packed
Each argument occupies its natural size and alignment, so a char takes one byte.
Darwin arm64. Getting this wrong produces functions whose ninth argument onward is
garbage, on Darwin only, which is spec/cross-compile/06-abis.md section 6.3’s first row.
Trait Implementations§
impl Copy for StackArgs
impl Eq for StackArgs
impl StructuralPartialEq for StackArgs
Auto Trait Implementations§
impl Freeze for StackArgs
impl RefUnwindSafe for StackArgs
impl Send for StackArgs
impl Sync for StackArgs
impl Unpin for StackArgs
impl UnsafeUnpin for StackArgs
impl UnwindSafe for StackArgs
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