pub trait Register: IndexMut<u32, Output = u32> + Sized {
// Provided methods
fn exec_copy(&self, op: OpCode, (a, b, c): Args) -> Self
where Self: Clone { ... }
fn exec(&mut self, op: OpCode, (a, b, c): Args) { ... }
fn exec_binop(&self, op: OpCode, a: u32, b: u32) -> u32 { ... }
}Provided Methods§
fn exec_copy(&self, op: OpCode, (a, b, c): Args) -> Selfwhere
Self: Clone,
fn exec(&mut self, op: OpCode, (a, b, c): Args)
fn exec_binop(&self, op: OpCode, a: u32, b: u32) -> u32
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.