Struct Relocation

struct Relocation<E: Endian> { ... }

A relocation entry.

Mach-O relocations have plain and scattered variants, with the meaning of the fields depending on the variant.

This type provides functions for determining whether the relocation is scattered, and for accessing the fields of each variant.

Fields

r_word0: crate::endian::U32<E>
r_word1: crate::endian::U32<E>

Implementations

impl<E: Endian> Relocation<E>

fn r_scattered(self: Self, endian: E, cputype: u32) -> bool

Determine whether this is a scattered relocation.

fn info(self: Self, endian: E) -> RelocationInfo

Return the fields of a plain relocation.

fn scattered_info(self: Self, endian: E) -> ScatteredRelocationInfo

Return the fields of a scattered relocation.

impl<E> Freeze for Relocation<E>

impl<E> RefUnwindSafe for Relocation<E>

impl<E> Send for Relocation<E>

impl<E> Sync for Relocation<E>

impl<E> Unpin for Relocation<E>

impl<E> UnwindSafe for Relocation<E>

impl<E: $crate::clone::Clone + Endian> Clone for Relocation<E>

fn clone(self: &Self) -> Relocation<E>

impl<E: $crate::fmt::Debug + Endian> Debug for Relocation<E>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl<E: $crate::marker::Copy + Endian> Copy for Relocation<E>

impl<E: Endian> Pod for Relocation<E>

impl<T> Any for Relocation<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Relocation<E>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Relocation<E>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Relocation<E>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Relocation<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Relocation<E>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Relocation<E>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Relocation<E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Relocation<E>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>