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
source§fn eq(&self, other: &FinalizedRelocTarget) -> bool
fn eq(&self, other: &FinalizedRelocTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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<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.