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