[][src]Enum xmas_elf::program::ProgramHeader

pub enum ProgramHeader<'a> {
    Ph32(&'a ProgramHeader32),
    Ph64(&'a ProgramHeader64),
}

Variants

Ph32(&'a ProgramHeader32)Ph64(&'a ProgramHeader64)

Methods

impl<'a> ProgramHeader<'a>[src]

pub fn get_type(&self) -> Result<Type, &'static str>[src]

pub fn get_data(
    &self,
    elf_file: &ElfFile<'a>
) -> Result<SegmentData<'a>, &'static str>
[src]

pub fn align(&self) -> u64[src]

pub fn file_size(&self) -> u64[src]

pub fn mem_size(&self) -> u64[src]

pub fn offset(&self) -> u64[src]

pub fn physical_addr(&self) -> u64[src]

pub fn virtual_addr(&self) -> u64[src]

pub fn flags(&self) -> Flags[src]

Trait Implementations

impl<'a> Debug for ProgramHeader<'a>[src]

impl<'a> Display for ProgramHeader<'a>[src]

impl<'a> Copy for ProgramHeader<'a>[src]

impl<'a> Clone for ProgramHeader<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for ProgramHeader<'a>

impl<'a> Sync for ProgramHeader<'a>

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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