pub struct Decoder { /* private fields */ }Implementations
sourceimpl 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 RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more