Struct process_builder::elf_parse::ElfIdent
source · #[repr(C)]pub struct ElfIdent {
pub magic: [u8; 4],
pub class: u8,
pub data: u8,
pub version: u8,
pub osabi: u8,
pub abiversion: u8,
pub pad: [u8; 7],
}
Expand description
ELF identity header.
Fields§
§magic: [u8; 4]
e_ident[EI_MAG0:EI_MAG3]
class: u8
e_ident[EI_CLASS]
data: u8
e_ident[EI_DATA]
version: u8
e_ident[EI_VERSION]
osabi: u8
e_ident[EI_OSABI]
abiversion: u8
e_ident[EI_ABIVERSION]
pad: [u8; 7]
e_ident[EI_PAD]
Implementations§
Trait Implementations§
source§impl FromBytes for ElfIdent
impl FromBytes for ElfIdent
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl IntoBytes for ElfIdent
impl IntoBytes for ElfIdent
source§impl PartialEq for ElfIdent
impl PartialEq for ElfIdent
impl Copy for ElfIdent
impl Eq for ElfIdent
impl StructuralPartialEq for ElfIdent
Auto Trait Implementations§
impl Freeze for ElfIdent
impl RefUnwindSafe for ElfIdent
impl Send for ElfIdent
impl Sync for ElfIdent
impl Unpin for ElfIdent
impl UnwindSafe for ElfIdent
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