pub struct SInstruction {
pub op: SInstructionOp,
pub imm: Immediate,
pub rs1: Register,
pub rs2: Register,
}
Fields§
§op: SInstructionOp
§imm: Immediate
§rs1: Register
§rs2: Register
Trait Implementations§
Source§impl Clone for SInstruction
impl Clone for SInstruction
Source§fn clone(&self) -> SInstruction
fn clone(&self) -> SInstruction
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 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
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