Struct gimli::write::Relocation
source · pub struct Relocation {
pub offset: usize,
pub size: u8,
pub target: RelocationTarget,
pub addend: i64,
pub eh_pe: Option<DwEhPe>,
}
Expand description
A relocation to be applied to a section.
Fields§
§offset: usize
The offset within the section where the relocation should be applied.
size: u8
The size of the value to be relocated.
target: RelocationTarget
The target of the relocation.
addend: i64
The addend to be applied to the relocated value.
eh_pe: Option<DwEhPe>
The pointer encoding for relocations in unwind information.
Trait Implementations§
source§impl Clone for Relocation
impl Clone for Relocation
source§fn clone(&self) -> Relocation
fn clone(&self) -> Relocation
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 Relocation
impl Debug for Relocation
source§impl PartialEq for Relocation
impl PartialEq for Relocation
impl Copy for Relocation
impl Eq for Relocation
impl StructuralPartialEq for Relocation
Auto Trait Implementations§
impl Freeze for Relocation
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnwindSafe for Relocation
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§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
)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.