#[repr(C)]pub struct Header {}
Fields
e_ident: [u8; 16]
Magic number and other info
e_type: u16
Object file type
e_machine: u16
Architecture
e_version: u32
Object file version
e_entry: u64
Entry point virtual address
e_phoff: u64
Program header table file offset
e_shoff: u64
Section header table file offset
e_flags: u32
Processor-specific flags
e_ehsize: u16
ELF header size in bytes
e_phentsize: u16
Program header table entry size
e_phnum: u16
Program header table entry count
e_shentsize: u16
Section header table entry size
e_shnum: u16
Section header table entry count
e_shstrndx: u16
Section header string table index
Implementations
Trait Implementations
sourceimpl Plain for Header
impl Plain for Header
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize
) -> Result<&mut [Self], Error>
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for Header
impl<'a> TryFromCtx<'a, Endian, [u8]> for Header
sourceimpl TryIntoCtx<Endian, [u8]> for Header
impl TryIntoCtx<Endian, [u8]> for Header
impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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