cranelift_codegen::isa::x64::args

Trait FromWritableReg

Source
pub trait FromWritableReg: Sized {
    // Required method
    fn from_writable_reg(w: Writable<Reg>) -> Option<Self>;
}
Expand description

An extension trait for converting Writable<Reg> to Writable{Xmm,Gpr}.

Required Methods§

Source

fn from_writable_reg(w: Writable<Reg>) -> Option<Self>

Convert Writable<Reg> to Writable{Xmm,Gpr}.

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§