Trait object::read::elf::Rela

source ·
pub trait Rela: Debug + Pod + Clone {
    type Word: Into<u64>;
    type Sword: Into<i64>;
    type Endian: Endian;

    // Required methods
    fn r_offset(&self, endian: Self::Endian) -> Self::Word;
    fn r_info(&self, endian: Self::Endian, is_mips64el: bool) -> Self::Word;
    fn r_addend(&self, endian: Self::Endian) -> Self::Sword;
    fn r_sym(&self, endian: Self::Endian, is_mips64el: bool) -> u32;
    fn r_type(&self, endian: Self::Endian, is_mips64el: bool) -> u32;
}
Expand description

A trait for generic access to Rela32 and Rela64.

Required Associated Types§

Required Methods§

source

fn r_offset(&self, endian: Self::Endian) -> Self::Word

source

fn r_info(&self, endian: Self::Endian, is_mips64el: bool) -> Self::Word

source

fn r_addend(&self, endian: Self::Endian) -> Self::Sword

source

fn r_sym(&self, endian: Self::Endian, is_mips64el: bool) -> u32

source

fn r_type(&self, endian: Self::Endian, is_mips64el: bool) -> u32

Object Safety§

This trait is not object safe.

Implementors§

source§

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

§

type Word = u32

§

type Sword = i32

§

type Endian = Endian

source§

impl<Endian: Endian> Rela for Rela64<Endian>

§

type Word = u64

§

type Sword = i64

§

type Endian = Endian