[][src]Trait elf_rs::GenElf

pub trait GenElf: Sized {
    type Word: Into<u64> + Debug + Display + LowerHex + UpperHex;
    type ElfHeaderType: GenElfHeader;
    type ProgramHeaderType: GenProgramHeader;
    type SectionHeaderType: GenSectionHeader;
    fn as_bytes(&self) -> &[u8];

    fn header(&self) -> &Self::ElfHeaderType { ... }
fn program_headers(&self) -> &[Self::ProgramHeaderType] { ... }
fn program_header_iter(&self) -> ProgramHeaderIter<Self> { ... }
fn section_headers(&self) -> &[Self::SectionHeaderType] { ... }
fn section_header_iter(&self) -> SectionHeaderIter<Self> { ... }
fn shstr_section(&self) -> &[u8] { ... }
fn lookup_section(&self, name: &[u8]) -> Option<SectionHeader<Self>> { ... } }

Associated Types

Loading content...

Required methods

fn as_bytes(&self) -> &[u8]

Loading content...

Provided methods

fn header(&self) -> &Self::ElfHeaderType

fn program_headers(&self) -> &[Self::ProgramHeaderType]

Important traits for ProgramHeaderIter<'a, E>
fn program_header_iter(&self) -> ProgramHeaderIter<Self>

fn section_headers(&self) -> &[Self::SectionHeaderType]

Important traits for SectionHeaderIter<'a, E>
fn section_header_iter(&self) -> SectionHeaderIter<Self>

fn shstr_section(&self) -> &[u8]

fn lookup_section(&self, name: &[u8]) -> Option<SectionHeader<Self>>

Loading content...

Implementors

impl<'a> GenElf for Elf32<'a>[src]

type Word = u32

type ElfHeaderType = ElfHeader32

type ProgramHeaderType = ProgramHeader32

type SectionHeaderType = SectionHeader32

fn header(&self) -> &Self::ElfHeaderType[src]

fn program_headers(&self) -> &[Self::ProgramHeaderType][src]

Important traits for ProgramHeaderIter<'a, E>
fn program_header_iter(&self) -> ProgramHeaderIter<Self>[src]

fn section_headers(&self) -> &[Self::SectionHeaderType][src]

Important traits for SectionHeaderIter<'a, E>
fn section_header_iter(&self) -> SectionHeaderIter<Self>[src]

fn shstr_section(&self) -> &[u8][src]

fn lookup_section(&self, name: &[u8]) -> Option<SectionHeader<Self>>[src]

impl<'a> GenElf for Elf64<'a>[src]

type Word = u64

type ElfHeaderType = ElfHeader64

type ProgramHeaderType = ProgramHeader64

type SectionHeaderType = SectionHeader64

fn header(&self) -> &Self::ElfHeaderType[src]

fn program_headers(&self) -> &[Self::ProgramHeaderType][src]

Important traits for ProgramHeaderIter<'a, E>
fn program_header_iter(&self) -> ProgramHeaderIter<Self>[src]

fn section_headers(&self) -> &[Self::SectionHeaderType][src]

Important traits for SectionHeaderIter<'a, E>
fn section_header_iter(&self) -> SectionHeaderIter<Self>[src]

fn shstr_section(&self) -> &[u8][src]

fn lookup_section(&self, name: &[u8]) -> Option<SectionHeader<Self>>[src]

Loading content...