Struct Ident

struct Ident { ... }

Magic number and other information.

Contained in the file header.

Fields

magic: [u8; 4]

Magic number. Must be ELFMAG.

class: u8

File class. One of the ELFCLASS* constants.

data: u8

Data encoding. One of the ELFDATA* constants.

version: u8

ELF version. Must be EV_CURRENT.

os_abi: u8

OS ABI identification. One of the ELFOSABI* constants.

abi_version: u8

ABI version.

The meaning of this field depends on the os_abi value.

padding: [u8; 7]

Padding bytes.

Implementations

impl Clone for Ident

fn clone(self: &Self) -> Ident

impl Copy for Ident

impl Debug for Ident

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Freeze for Ident

impl RefUnwindSafe for Ident

impl Send for Ident

impl Sync for Ident

impl Unpin for Ident

impl UnwindSafe for Ident

impl<T> Any for Ident

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Ident

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Ident

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Ident

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Ident

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Ident

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Ident

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Ident

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Ident

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>