pub struct InstructionInfo {
pub length: usize,
pub arch_transition_by_target_addr: bool,
pub delay_slots: u8,
pub branches: [Option<BranchInfo>; 3],
}Fields§
§length: usize§arch_transition_by_target_addr: bool§delay_slots: u8§branches: [Option<BranchInfo>; 3]Implementations§
Source§impl InstructionInfo
impl InstructionInfo
pub fn new(length: usize, delay_slots: u8) -> Self
Sourcepub fn add_branch(&mut self, branch_info: impl Into<BranchInfo>)
pub fn add_branch(&mut self, branch_info: impl Into<BranchInfo>)
Add a branch to this InstructionInfo, maximum of 3 branches may be added (as per NUM_BRANCH_INFO).
Trait Implementations§
Source§impl Clone for InstructionInfo
impl Clone for InstructionInfo
Source§fn clone(&self) -> InstructionInfo
fn clone(&self) -> InstructionInfo
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 InstructionInfo
impl Debug for InstructionInfo
Source§impl From<BNInstructionInfo> for InstructionInfo
impl From<BNInstructionInfo> for InstructionInfo
Source§fn from(value: BNInstructionInfo) -> Self
fn from(value: BNInstructionInfo) -> Self
Converts to this type from the input type.
Source§impl From<InstructionInfo> for BNInstructionInfo
impl From<InstructionInfo> for BNInstructionInfo
Source§fn from(value: InstructionInfo) -> Self
fn from(value: InstructionInfo) -> Self
Converts to this type from the input type.
Source§impl Hash for InstructionInfo
impl Hash for InstructionInfo
Source§impl PartialEq for InstructionInfo
impl PartialEq for InstructionInfo
impl Copy for InstructionInfo
impl Eq for InstructionInfo
impl StructuralPartialEq for InstructionInfo
Auto Trait Implementations§
impl Freeze for InstructionInfo
impl RefUnwindSafe for InstructionInfo
impl Send for InstructionInfo
impl Sync for InstructionInfo
impl Unpin for InstructionInfo
impl UnwindSafe for InstructionInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more