pub struct Decoder {
pub(crate) instruction_sets: Vec<InstructionSet>,
}Fields§
§instruction_sets: Vec<InstructionSet>Implementations§
Source§impl Decoder
impl Decoder
pub fn new(instruction_set_tomls: &[String]) -> Result<Self, Vec<Vec<String>>>
pub fn new_from_table( instruction_sets: Vec<Table>, ) -> Result<Self, Vec<Vec<String>>>
pub fn decode_from_string( &self, instruction: &str, bit_width: usize, ) -> Result<String, String>
pub fn decode( &self, instruction: u128, bit_width: usize, ) -> Result<String, String>
pub fn decode_all(&self, instruction: u128, bit_width: usize) -> Vec<String>
pub fn decode_from_u32( &self, instruction: u32, bit_width: usize, ) -> Result<String, String>
pub fn decode_all_from_u32( &self, instruction: u32, bit_width: usize, ) -> Vec<String>
pub fn decode_from_i64( &self, instruction: i64, bit_width: usize, ) -> Result<String, String>
pub fn decode_all_from_i64( &self, instruction: i64, bit_width: usize, ) -> Vec<String>
pub fn decode_from_bytes( &self, instruction: Vec<u8>, bit_width: usize, ) -> Result<String, String>
pub fn decode_all_from_bytes( &self, instruction: Vec<u8>, bit_width: usize, ) -> Vec<String>
Auto Trait Implementations§
impl Freeze for Decoder
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnsafeUnpin 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