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<'de> Deserialize<'de> for FinalizedRelocTarget
impl<'de> Deserialize<'de> for FinalizedRelocTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FinalizedRelocTarget
impl Hash for FinalizedRelocTarget
Source§impl PartialEq for FinalizedRelocTarget
impl PartialEq for FinalizedRelocTarget
Source§impl Serialize for FinalizedRelocTarget
impl Serialize 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,
§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<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