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<TargetKind> for TargetKind
impl PartialEq<TargetKind> 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 ==
.