Skip to main content

ToAsm

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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

Source§

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