pub struct SBInstruction {
pub op: SBInstructionOp,
pub imm: RelAddress,
pub rs1: Register,
pub rs2: Register,
}
Fields§
§op: SBInstructionOp
§imm: RelAddress
§rs1: Register
§rs2: Register
Trait Implementations§
Source§impl Clone for SBInstruction
impl Clone for SBInstruction
Source§fn clone(&self) -> SBInstruction
fn clone(&self) -> SBInstruction
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 SBInstruction
impl Debug for SBInstruction
Source§impl GenerateCode for SBInstruction
impl GenerateCode for SBInstruction
fn generate_code(&self) -> u32
fn generate_asm(&self) -> String
Source§impl PartialEq for SBInstruction
impl PartialEq for SBInstruction
impl StructuralPartialEq for SBInstruction
Auto Trait Implementations§
impl Freeze for SBInstruction
impl RefUnwindSafe for SBInstruction
impl Send for SBInstruction
impl Sync for SBInstruction
impl Unpin for SBInstruction
impl UnwindSafe for SBInstruction
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