Struct elf::segment::ProgramHeader
source · [−]pub struct ProgramHeader {
pub p_type: ProgType,
pub p_offset: u64,
pub p_vaddr: u64,
pub p_paddr: u64,
pub p_filesz: u64,
pub p_memsz: u64,
pub p_flags: ProgFlag,
pub p_align: u64,
}Expand description
Encapsulates the contents of an ELF Program Header
The program header table is an array of program header structures describing the various segments for program execution.
Fields
p_type: ProgTypeProgram segment type
p_offset: u64Offset into the ELF file where this segment begins
p_vaddr: u64Virtual adress where this segment should be loaded
p_paddr: u64Physical address where this segment should be loaded
p_filesz: u64Size of this segment in the file
p_memsz: u64Size of this segment in memory
p_flags: ProgFlagFlags for this segment
p_align: u64file and memory alignment
Implementations
sourceimpl ProgramHeader
impl ProgramHeader
Trait Implementations
sourceimpl Clone for ProgramHeader
impl Clone for ProgramHeader
sourcefn clone(&self) -> ProgramHeader
fn clone(&self) -> ProgramHeader
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ProgramHeader
impl Debug for ProgramHeader
sourceimpl Display for ProgramHeader
impl Display for ProgramHeader
sourceimpl PartialEq<ProgramHeader> for ProgramHeader
impl PartialEq<ProgramHeader> for ProgramHeader
sourcefn eq(&self, other: &ProgramHeader) -> bool
fn eq(&self, other: &ProgramHeader) -> bool
impl Copy for ProgramHeader
impl Eq for ProgramHeader
impl StructuralEq for ProgramHeader
impl StructuralPartialEq for ProgramHeader
Auto Trait Implementations
impl RefUnwindSafe for ProgramHeader
impl Send for ProgramHeader
impl Sync for ProgramHeader
impl Unpin for ProgramHeader
impl UnwindSafe for ProgramHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more