pub struct Elf<'a> { /* private fields */ }
Expand description
An ELF binary
Implementations§
Source§impl Elf<'_>
impl Elf<'_>
Sourcepub fn new<'a>(bytes: &'a [u8]) -> Result<Elf<'a>, ElfError>
pub fn new<'a>(bytes: &'a [u8]) -> Result<Elf<'a>, ElfError>
Create an Elf
from a stream of bytes
Sourcepub fn sections(&self) -> EntryIter<'_, SectionHeader> ⓘ
pub fn sections(&self) -> EntryIter<'_, SectionHeader> ⓘ
Create a SectionIter
that iterates over this ELF’s section header.
pub fn segments(&self) -> EntryIter<'_, ProgramHeader> ⓘ
pub fn symbols(&self) -> EntryIter<'_, Symbol> ⓘ
pub fn entry_point(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Elf<'a>
impl<'a> RefUnwindSafe for Elf<'a>
impl<'a> Send for Elf<'a>
impl<'a> Sync for Elf<'a>
impl<'a> Unpin for Elf<'a>
impl<'a> UnwindSafe for Elf<'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