Struct xmas_elf::program::ProgramHeader32[][src]

#[repr(C)]pub struct ProgramHeader32 {
    pub type_: Type_,
    pub offset: u32,
    pub virtual_addr: u32,
    pub physical_addr: u32,
    pub file_size: u32,
    pub mem_size: u32,
    pub flags: Flags,
    pub align: u32,
}

Fields

type_: Type_offset: u32virtual_addr: u32physical_addr: u32file_size: u32mem_size: u32flags: Flagsalign: u32

Implementations

impl ProgramHeader32[src]

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

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

pub fn raw_data<'a>(&self, elf_file: &ElfFile<'a>) -> &'a [u8][src]

Trait Implementations

impl Clone for ProgramHeader32[src]

impl Copy for ProgramHeader32[src]

impl Debug for ProgramHeader32[src]

impl Default for ProgramHeader32[src]

impl Display for ProgramHeader32[src]

impl Pod for ProgramHeader32[src]

Auto Trait Implementations

impl Send for ProgramHeader32

impl Sync for ProgramHeader32

impl Unpin for ProgramHeader32

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.