rustix::backend::reg

Trait FromAsm

Source
pub(super) trait FromAsm: Sealed {
    // Required method
    unsafe fn from_asm(raw: *mut Opaque) -> Self;
}

Required Methods§

Source

unsafe fn from_asm(raw: *mut Opaque) -> Self

Convert raw from a value produced by a syscall machine instruction into a Self.

§Safety

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<Num: RetNumber> FromAsm for RetReg<Num>