#[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§
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>
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.Source§impl TryIntoCtx<Endian> for Header
Available on crate feature alloc only.
impl TryIntoCtx<Endian> for Header
Available on crate feature
alloc only.impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
§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, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)