#[repr(C)]pub struct Header {}Fields§
§e_ident: [u8; 16]Magic number and other info
e_type: u16Object file type
e_machine: u16Architecture
e_version: u32Object file version
e_entry: u32Entry point virtual address
e_phoff: u32Program header table file offset
e_shoff: u32Section header table file offset
e_flags: u32Processor-specific flags
e_ehsize: u16ELF header size in bytes
e_phentsize: u16Program header table entry size
e_phnum: u16Program header table entry count
e_shentsize: u16Section header table entry size
e_shnum: u16Section header table entry count
e_shstrndx: u16Section header string table index
Implementations§
Trait Implementations§
impl Copy for Header
impl Eq for Header
Source§impl Plain for Header
impl Plain for Header
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where
Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where
Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where
Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where
Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where
Self: Sized,
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize,
) -> Result<&mut [Self], Error>where
Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
impl StructuralPartialEq for Header
Source§impl<'a> TryFromCtx<'a, Endian> for Header
Available on crate feature alloc only.
impl<'a> TryFromCtx<'a, Endian> for Header
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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