Struct rv32_asm::instruction::IInstruction
source · pub struct IInstruction {
pub op: IInstructionOp,
pub imm: Immediate,
pub rs1: Register,
pub rd: Register,
}Fields§
§op: IInstructionOp§imm: Immediate§rs1: Register§rd: RegisterImplementations§
Trait Implementations§
source§impl Clone for IInstruction
impl Clone for IInstruction
source§fn clone(&self) -> IInstruction
fn clone(&self) -> IInstruction
Returns a copy 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
source§fn eq(&self, other: &IInstruction) -> bool
fn eq(&self, other: &IInstruction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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