pub enum RiscVInstruction {
UiType,
UType,
IType,
SType,
BType,
JType,
CbType,
CjType,
Uleb128,
}Variants§
Implementations§
Source§impl RiscVInstruction
impl RiscVInstruction
pub fn write_to_value( self, extracted_value: u64, _negative: bool, dest: &mut [u8], )
Sourcepub fn read_value(self, bytes: &[u8]) -> (u64, bool)
pub fn read_value(self, bytes: &[u8]) -> (u64, bool)
The inverse of write_to_value. Returns (extracted_value, negative). Supplied bytes
must be at least 4 bytes, otherwise we panic.
Trait Implementations§
Source§impl Clone for RiscVInstruction
impl Clone for RiscVInstruction
Source§fn clone(&self) -> RiscVInstruction
fn clone(&self) -> RiscVInstruction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RiscVInstruction
impl Debug for RiscVInstruction
Source§impl PartialEq for RiscVInstruction
impl PartialEq for RiscVInstruction
impl Copy for RiscVInstruction
impl Eq for RiscVInstruction
impl StructuralPartialEq for RiscVInstruction
Auto Trait Implementations§
impl Freeze for RiscVInstruction
impl RefUnwindSafe for RiscVInstruction
impl Send for RiscVInstruction
impl Sync for RiscVInstruction
impl Unpin for RiscVInstruction
impl UnwindSafe for RiscVInstruction
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