rustix::backend::reg

Trait 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>