pub trait Reg:
    Copy
    + Clone
    + Eq
    + PartialEq
    + Debug
    + Hash
    + Ord {
    // Required methods
    fn is_callee_save(self) -> bool;
    fn is_reserved(self) -> bool;
    fn into_index(self) -> usize;
    fn from_index(i: usize) -> Result<Self, ()>;
    fn iterator() -> Iter<'static, Self>;
    fn to_dwarf(self) -> u16;
}

Required Methods§

Source

fn is_callee_save(self) -> bool

Source

fn is_reserved(self) -> bool

Source

fn into_index(self) -> usize

Source

fn from_index(i: usize) -> Result<Self, ()>

Source

fn iterator() -> Iter<'static, Self>

Source

fn to_dwarf(self) -> u16

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 Reg for wasmer_compiler_singlepass::arm64_decl::GPR

Source§

impl Reg for NEON

Source§

impl Reg for wasmer_compiler_singlepass::x64_decl::GPR

Source§

impl Reg for XMM