pub struct IInstruction {
pub op: IInstructionOp,
pub imm: Immediate,
pub rs1: Register,
pub rd: Register,
}
Fields§
§op: IInstructionOp
§imm: Immediate
§rs1: Register
§rd: Register
Implementations§
Trait Implementations§
Source§impl Clone for IInstruction
impl Clone for IInstruction
Source§fn clone(&self) -> IInstruction
fn clone(&self) -> IInstruction
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 IInstruction
impl Debug for IInstruction
Source§impl GenerateCode for IInstruction
impl GenerateCode for IInstruction
fn generate_code(&self) -> u32
fn generate_asm(&self) -> String
Source§impl PartialEq for IInstruction
impl PartialEq for IInstruction
impl StructuralPartialEq for IInstruction
Auto Trait Implementations§
impl Freeze for IInstruction
impl RefUnwindSafe for IInstruction
impl Send for IInstruction
impl Sync for IInstruction
impl Unpin for IInstruction
impl UnwindSafe for IInstruction
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