pub struct SBInstruction {
pub raw: SBInstructionRef,
}Expand description
A machine instruction.
Fields§
§raw: SBInstructionRefThe underlying raw SBInstructionRef.
Implementations§
Source§impl SBInstruction
impl SBInstruction
pub fn mnemonic(&self, target: &SBTarget) -> &str
pub fn operands(&self, target: &SBTarget) -> &str
pub fn comment(&self, target: &SBTarget) -> &str
pub fn data(&self, target: &SBTarget) -> SBData
pub fn byte_size(&self) -> usize
pub fn is_branch(&self) -> bool
pub fn has_delay_slot(&self) -> bool
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 Drop for SBInstruction
impl Drop for SBInstruction
impl Send for SBInstruction
impl Sync for SBInstruction
Auto Trait Implementations§
impl Freeze for SBInstruction
impl RefUnwindSafe 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