Enum xmas_elf::program::ProgramHeader
source · pub enum ProgramHeader<'a> {
Ph32(&'a ProgramHeader32),
Ph64(&'a ProgramHeader64),
}
Variants§
Ph32(&'a ProgramHeader32)
Ph64(&'a ProgramHeader64)
Implementations§
source§impl<'a> ProgramHeader<'a>
impl<'a> ProgramHeader<'a>
pub fn get_type(&self) -> Result<Type, &'static str>
pub fn get_data( &self, elf_file: &ElfFile<'a> ) -> Result<SegmentData<'a>, &'static str>
pub fn align(&self) -> u64
pub fn file_size(&self) -> u64
pub fn mem_size(&self) -> u64
pub fn offset(&self) -> u64
pub fn physical_addr(&self) -> u64
pub fn virtual_addr(&self) -> u64
pub fn flags(&self) -> Flags
Trait Implementations§
source§impl<'a> Clone for ProgramHeader<'a>
impl<'a> Clone for ProgramHeader<'a>
source§fn clone(&self) -> ProgramHeader<'a>
fn clone(&self) -> ProgramHeader<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ProgramHeader<'a>
impl<'a> Debug for ProgramHeader<'a>
source§impl<'a> Display for ProgramHeader<'a>
impl<'a> Display for ProgramHeader<'a>
impl<'a> Copy for ProgramHeader<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ProgramHeader<'a>
impl<'a> Send for ProgramHeader<'a>
impl<'a> Sync for ProgramHeader<'a>
impl<'a> Unpin for ProgramHeader<'a>
impl<'a> UnwindSafe for ProgramHeader<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more