Trait rustix::backend::reg::ToAsm

source ·
pub(super) trait ToAsm: Sealed {
    // Required method
    unsafe fn to_asm(self) -> *mut Opaque;
}

Required Methods§

source

unsafe fn to_asm(self) -> *mut Opaque

Convert self to a usize ready to be passed to a syscall machine instruction.

§Safety

This should be used immediately before the syscall instruction, and the returned value shouldn’t be used for any other purpose.

Implementors§

source§

impl<'a> ToAsm for SyscallNumber<'a>

source§

impl<'a, Num: ArgNumber> ToAsm for ArgReg<'a, Num>