pub struct Opcodes { /* private fields */ }Expand description
A builder for DispatchTable.
Implementations§
Source§impl Opcodes
impl Opcodes
pub fn build(self) -> DispatchTable
pub fn add_simple( &mut self, opcode: u32, bits: u16, exec: FnExecInstrSimple, ) -> Result<()>
pub fn add_fixed( &mut self, opcode: u32, opcode_bits: u16, arg_bits: u16, exec: FnExecInstrArg, ) -> Result<()>
pub fn add_fixed_range( &mut self, opcode_min: u32, opcode_max: u32, total_bits: u16, _arg_bits: u16, exec: FnExecInstrArg, ) -> Result<()>
pub fn add_ext( &mut self, opcode: u32, opcode_bits: u16, arg_bits: u16, exec: FnExecInstrFull, ) -> Result<()>
pub fn add_ext_range( &mut self, opcode_min: u32, opcode_max: u32, total_bits: u16, exec: FnExecInstrFull, ) -> Result<()>
pub fn add_opcode(&mut self, opcode: Box<dyn OpcodeExec>) -> Result<()>
Auto Trait Implementations§
impl Freeze for Opcodes
impl !RefUnwindSafe for Opcodes
impl Send for Opcodes
impl Sync for Opcodes
impl Unpin for Opcodes
impl UnsafeUnpin for Opcodes
impl !UnwindSafe for Opcodes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more