pub trait RelocationLike {
// Required methods
fn kind(&self) -> RelocationKind;
fn reloc_target(&self) -> RelocationTarget;
fn offset(&self) -> CodeOffset;
fn addend(&self) -> Addend;
// Provided method
fn for_address(
&self,
start: usize,
target_func_address: u64,
) -> (usize, u64) { ... }
}Available on crate features
core or std only.Expand description
Any struct that acts like a Relocation.
Required Methods§
fn kind(&self) -> RelocationKind
fn reloc_target(&self) -> RelocationTarget
fn offset(&self) -> CodeOffset
fn addend(&self) -> Addend
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".