Skip to main content

Lut16InstructionDecoder

Struct Lut16InstructionDecoder 

Source
pub struct Lut16InstructionDecoder { /* private fields */ }
Expand description

Instruction decoder with a look-up-table for 16-bit instruction decoding.

This has 16-bit instruction decoding O(1) complexity, but has a strong cost during initialization to generate the table. The table is initialized using a given base instruction decoder.

The look-up table is only valid outside IT blocks. 16-bit instructions inside an IT block are resolved using the given base decoder.

32-bit wide instructions are resolved using the given base instruction decoder.

Implementations§

Trait Implementations§

Source§

impl InstructionDecode for Lut16InstructionDecoder

Source§

fn try_decode( &self, ins: u32, size: InstructionSize, state: ItState, ) -> Result<Rc<dyn Instruction>, InstructionDecodeError>

Tries to decode the given ins instruction raw code, which can be 16 bit or 32 bit wide depending on the size argument. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.