pub(super) trait ToAsm: Sealed { // Required method unsafe fn to_asm(self) -> *mut Opaque; }
Convert self to a usize ready to be passed to a syscall machine instruction.
self
usize
This should be used immediately before the syscall instruction, and the returned value shouldn’t be used for any other purpose.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".