Struct rv32_asm::instruction::RInstruction
source · pub struct RInstruction {
pub op: RInstructionOp,
pub rs1: Register,
pub rs2: Register,
pub rd: Register,
}Fields§
§op: RInstructionOp§rs1: Register§rs2: Register§rd: RegisterTrait Implementations§
source§impl Clone for RInstruction
impl Clone for RInstruction
source§fn clone(&self) -> RInstruction
fn clone(&self) -> RInstruction
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 RInstruction
impl Debug for RInstruction
source§impl GenerateCode for RInstruction
impl GenerateCode for RInstruction
fn generate_code(&self) -> u32
fn generate_asm(&self) -> String
source§impl PartialEq for RInstruction
impl PartialEq for RInstruction
source§fn eq(&self, other: &RInstruction) -> bool
fn eq(&self, other: &RInstruction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RInstruction
Auto Trait Implementations§
impl Freeze for RInstruction
impl RefUnwindSafe for RInstruction
impl Send for RInstruction
impl Sync for RInstruction
impl Unpin for RInstruction
impl UnwindSafe for RInstruction
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