Enum dynasmrt::TargetKind
source · pub enum TargetKind {
Local(&'static str),
Global(&'static str),
Dynamic(DynamicLabel),
Extern(usize),
Managed,
}
Expand description
A description of a relocation target. Used for error reporting.
Variants§
Local(&'static str)
This targets a local label with the specified name.
Global(&'static str)
This targets a global label with the specified name.
Dynamic(DynamicLabel)
This targets the specified dynamic label.
Extern(usize)
This targets the specified address.
Managed
An already resolved relocation that needs to be adjusted when the buffer moves in memory.
Trait Implementations§
source§impl Clone for TargetKind
impl Clone for TargetKind
source§fn clone(&self) -> TargetKind
fn clone(&self) -> TargetKind
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 TargetKind
impl Debug for TargetKind
source§impl Display for TargetKind
impl Display for TargetKind
source§impl Hash for TargetKind
impl Hash for TargetKind
source§impl PartialEq for TargetKind
impl PartialEq for TargetKind
source§fn eq(&self, other: &TargetKind) -> bool
fn eq(&self, other: &TargetKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TargetKind
impl Eq for TargetKind
impl StructuralPartialEq for TargetKind
Auto Trait Implementations§
impl Freeze for TargetKind
impl RefUnwindSafe for TargetKind
impl Send for TargetKind
impl Sync for TargetKind
impl Unpin for TargetKind
impl UnwindSafe for TargetKind
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)