pub enum FinalizedRelocTarget {
ExternalName(ExternalName),
Func(CodeOffset),
}
Expand description
A Relocation target
Variants§
ExternalName(ExternalName)
Points to an ExternalName outside the current function.
Func(CodeOffset)
Points to a CodeOffset from the start of the current function.
Implementations§
source§impl FinalizedRelocTarget
impl FinalizedRelocTarget
sourcepub fn display<'a>(&'a self, params: Option<&'a FunctionParameters>) -> String
pub fn display<'a>(&'a self, params: Option<&'a FunctionParameters>) -> String
Returns a display for the current FinalizedRelocTarget, with extra context to prettify the output.
Trait Implementations§
source§impl Clone for FinalizedRelocTarget
impl Clone for FinalizedRelocTarget
source§fn clone(&self) -> FinalizedRelocTarget
fn clone(&self) -> FinalizedRelocTarget
Returns a copy 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 FinalizedRelocTarget
impl Debug for FinalizedRelocTarget
source§impl Hash for FinalizedRelocTarget
impl Hash for FinalizedRelocTarget
source§impl PartialEq for FinalizedRelocTarget
impl PartialEq for FinalizedRelocTarget
impl Eq for FinalizedRelocTarget
impl StructuralPartialEq for FinalizedRelocTarget
Auto Trait Implementations§
impl Freeze for FinalizedRelocTarget
impl RefUnwindSafe for FinalizedRelocTarget
impl Send for FinalizedRelocTarget
impl Sync for FinalizedRelocTarget
impl Unpin for FinalizedRelocTarget
impl UnwindSafe for FinalizedRelocTarget
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.