pub struct Relocation {
pub instruction_index: usize,
pub target: String,
pub kind: RelocationKind,
pub addend: i32,
}Expand description
Relocation entry
Fields§
§instruction_index: usizeOffset position in the instruction stream (relative to the start of the sequence)
target: StringTarget symbol name (e.g., function name, label name, or data section offset)
kind: RelocationKindRelocation kind
addend: i32Additional offset
Trait Implementations§
Source§impl Clone for Relocation
impl Clone for Relocation
Source§fn clone(&self) -> Relocation
fn clone(&self) -> Relocation
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Relocation
impl RefUnwindSafe for Relocation
impl Send for Relocation
impl Sync for Relocation
impl Unpin for Relocation
impl UnsafeUnpin 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