Struct object::read::elf::RelocationSections[][src]

pub struct RelocationSections { /* fields omitted */ }

A mapping from section index to associated relocation sections.

Implementations

impl RelocationSections[src]

pub fn parse<Elf: FileHeader>(
    endian: Elf::Endian,
    sections: &SectionTable<'_, Elf>,
    symbol_section: usize
) -> Result<Self>
[src]

Create a new mapping using the section table.

Skips relocation sections that do not use the given symbol table section.

pub fn get(&self, index: usize) -> Option<usize>[src]

Given a section index, return the section index of the associated relocation section.

This may also be called with a relocation section index, and it will return the next associated relocation section.

Trait Implementations

impl Debug for RelocationSections[src]

Auto Trait Implementations

impl Send for RelocationSections

impl Sync for RelocationSections

impl Unpin for RelocationSections

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.