#[repr(C)]pub struct ElfHeader {Show 14 fields
pub e_ident: ElfHeaderIdent,
pub e_type: u16,
pub e_machine: u16,
pub e_version: u32,
pub e_entry: usize,
pub e_phoff: usize,
pub e_shoff: usize,
pub e_flags: u32,
pub e_ehsize: u16,
pub e_phentsize: u16,
pub e_phnum: u16,
pub e_shentsize: u16,
pub e_shnum: u16,
pub e_shstrndx: u16,
}
Fields§
§e_ident: ElfHeaderIdent
§e_type: u16
§e_machine: u16
§e_version: u32
§e_entry: usize
§e_phoff: usize
§e_shoff: usize
§e_flags: u32
§e_ehsize: u16
§e_phentsize: u16
§e_phnum: u16
§e_shentsize: u16
§e_shnum: u16
§e_shstrndx: u16
Implementations§
Source§impl ElfHeader
impl ElfHeader
pub fn check_magic(&self) -> bool
pub fn locate_phdrs(&'static self) -> &'static [ProgramHeader]
Trait Implementations§
impl Copy for ElfHeader
impl Eq for ElfHeader
impl StructuralPartialEq for ElfHeader
Auto Trait Implementations§
impl Freeze for ElfHeader
impl RefUnwindSafe for ElfHeader
impl Send for ElfHeader
impl Sync for ElfHeader
impl Unpin for ElfHeader
impl UnwindSafe for ElfHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)