Enum xmas_elf::program::ProgramHeader
[−]
[src]
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]
&self,
elf_file: &ElfFile<'a>
) -> Result<SegmentData<'a>, &'static str>
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> Copy for ProgramHeader<'a>
[src]
impl<'a> Clone for ProgramHeader<'a>
[src]
fn clone(&self) -> ProgramHeader<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ProgramHeader<'a>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more