pub struct Decoder { /* private fields */ }
Implementations§
source§impl Decoder
impl Decoder
pub fn new(mop: bool, version: u32) -> Decoder
pub fn add_instruction_factory(&mut self, factory: InstructionFactory)
pub fn decode_raw<M: Memory>( &mut self, memory: &mut M, pc: u64, ) -> Result<Instruction, Error>
pub fn decode_mop<M: Memory>( &mut self, memory: &mut M, pc: u64, ) -> Result<Instruction, Error>
pub fn decode<M: Memory>( &mut self, memory: &mut M, pc: u64, ) -> Result<Instruction, Error>
pub fn reset_instructions_cache(&mut self)
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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