pub struct BranchTarget {
pub addr: u32,
}Expand description
The resolved absolute address of a direct (PC-relative) branch instruction.
The address is computed at decode time: pc + displacement * scale + bias.
Indirect branches (jmp @Rn, braf Rn, etc.) do not produce a BranchTarget
because their destination depends on register state.
Fields§
§addr: u32Trait Implementations§
Source§impl Clone for BranchTarget
impl Clone for BranchTarget
Source§fn clone(&self) -> BranchTarget
fn clone(&self) -> BranchTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BranchTarget
Source§impl Debug for BranchTarget
impl Debug for BranchTarget
impl Eq for BranchTarget
Source§impl Hash for BranchTarget
impl Hash for BranchTarget
Source§impl PartialEq for BranchTarget
impl PartialEq for BranchTarget
Source§fn eq(&self, other: &BranchTarget) -> bool
fn eq(&self, other: &BranchTarget) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BranchTarget
Auto Trait Implementations§
impl Freeze for BranchTarget
impl RefUnwindSafe for BranchTarget
impl Send for BranchTarget
impl Sync for BranchTarget
impl Unpin for BranchTarget
impl UnsafeUnpin for BranchTarget
impl UnwindSafe for BranchTarget
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