Enum object::read::RelocationTarget
source · #[non_exhaustive]
pub enum RelocationTarget {
Symbol(SymbolIndex),
Section(SectionIndex),
Absolute,
}
Expand description
The target referenced by a relocation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Symbol(SymbolIndex)
The target is a symbol.
Section(SectionIndex)
The target is a section.
Absolute
The offset is an absolute address.
Trait Implementations§
source§impl Clone for RelocationTarget
impl Clone for RelocationTarget
source§fn clone(&self) -> RelocationTarget
fn clone(&self) -> RelocationTarget
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 more