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
pub fn add_branch(&mut self, branch_info: impl Into<BranchInfo>)
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,
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