pub struct Elf64Headers { /* private fields */ }
Implementations§
Source§impl Elf64Headers
impl Elf64Headers
pub fn from_vmo(vmo: &Vmo) -> Result<Elf64Headers, ElfParseError>
pub fn from_vmo_with_arch32(vmo: &Vmo) -> Result<Elf64Headers, ElfParseError>
pub fn file_header(&self) -> &Elf64FileHeader
pub fn program_headers(&self) -> &[Elf64ProgramHeader]
Sourcepub fn program_headers_with_type(
&self,
stype: SegmentType,
) -> impl Iterator<Item = &Elf64ProgramHeader>
pub fn program_headers_with_type( &self, stype: SegmentType, ) -> impl Iterator<Item = &Elf64ProgramHeader>
Returns an iterator that yields all program headers of the given type.
Sourcepub fn program_header_with_type(
&self,
stype: SegmentType,
) -> Result<Option<&Elf64ProgramHeader>, ElfParseError>
pub fn program_header_with_type( &self, stype: SegmentType, ) -> Result<Option<&Elf64ProgramHeader>, ElfParseError>
Returns 0 or 1 headers of the given type, or Err(ElfParseError::MultipleHeaders) if more than 1 such header is present.
Auto Trait Implementations§
impl Freeze for Elf64Headers
impl RefUnwindSafe for Elf64Headers
impl Send for Elf64Headers
impl Sync for Elf64Headers
impl Unpin for Elf64Headers
impl UnwindSafe for Elf64Headers
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