Struct Rela32

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

Relocation table entry with explicit addend.

Fields

r_offset: crate::endian::U32<E>

Relocation address.

r_info: crate::endian::U32<E>

Relocation type and symbol index.

r_addend: crate::endian::I32<E>

Explicit addend.

Implementations

impl<E: Endian> Rela32<E>

fn r_sym(self: &Self, endian: E) -> u32

Get the r_sym component of the r_info field.

fn r_type(self: &Self, endian: E) -> u32

Get the r_type component of the r_info field.

fn r_info(endian: E, r_sym: u32, r_type: u8) -> U32<E>

Calculate the r_info field given the r_sym and r_type components.

fn set_r_info(self: &mut Self, endian: E, r_sym: u32, r_type: u8)

Set the r_info field given the r_sym and r_type components.

impl<E> Freeze for Rela32<E>

impl<E> RefUnwindSafe for Rela32<E>

impl<E> Send for Rela32<E>

impl<E> Sync for Rela32<E>

impl<E> Unpin for Rela32<E>

impl<E> UnwindSafe for Rela32<E>

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

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

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

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

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

impl<E: Endian> From for Rela32<E>

fn from(rel: Rel32<E>) -> Self

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

impl<Endian: endian::Endian> Rela for elf::Rela32<Endian>

fn r_offset(self: &Self, endian: <Self as >::Endian) -> <Self as >::Word
fn r_info(self: &Self, endian: <Self as >::Endian, _is_mips64el: bool) -> <Self as >::Word
fn r_addend(self: &Self, endian: <Self as >::Endian) -> <Self as >::Sword
fn r_sym(self: &Self, endian: <Self as >::Endian, _is_mips64el: bool) -> u32
fn r_type(self: &Self, endian: <Self as >::Endian, _is_mips64el: bool) -> u32

impl<T> Any for Rela32<E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Rela32<E>

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

impl<T> BorrowMut for Rela32<E>

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

impl<T> CloneToUninit for Rela32<E>

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

impl<T> From for Rela32<E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Rela32<E>

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

impl<T, U> Into for Rela32<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 Rela32<E>

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

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

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