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