Skip to main content

Header32

Struct Header32 

Source
#[repr(C)]
pub struct Header32 {
Show 14 fields pub e_ident: Identifier, pub e_type: Half, pub e_machine: Half, pub e_version: Word, pub e_entry: Addr, pub e_phoff: Off, pub e_shoff: Off, pub e_flags: Word, pub e_ehsize: Half, pub e_phentsize: Half, pub e_phnum: Half, pub e_shentsize: Half, pub e_shnum: Half, pub e_shstrndx: Half,
}

Fields§

§e_ident: Identifier§e_type: Half§e_machine: Half§e_version: Word§e_entry: Addr§e_phoff: Off§e_shoff: Off§e_flags: Word§e_ehsize: Half§e_phentsize: Half§e_phnum: Half§e_shentsize: Half§e_shnum: Half§e_shstrndx: Half

Trait Implementations§

Source§

impl Bytes<Origin, Origin> for Header32

Source§

impl BytesDefault<Origin> for Header32

Source§

impl Clone for Header32

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Header32

Source§

impl Debug for Header32

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Header32

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl NonPrimitive<Origin> for Header32

Source§

const IS_PRIMITIVE: bool = false

Source§

impl Primitive<Origin> for Header32

Source§

const IS_PRIMITIVE: bool = false

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocating<T> for T
where T: Bytes<Origin, Origin>,

Source§

fn deallocate(ptr: *mut T, numerosity: usize) -> bool

Deallocate an array previously allocated with allocate_array

Source§

fn allocate_slice(numerosity: usize) -> &'static mut [T]

Allocate and initialize a slice

Source§

fn allocate(numerosity: usize) -> *mut T

Source§

fn deallocate_slice(slice: &mut [T]) -> bool

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<U> Readable<Origin> for U

Source§

type Origin = Origin

Source§

fn read_from_path( path: &str, offset: usize, endianness: bool, ) -> (Self, isize, usize)

Source§

fn read_from_file_descriptor( file_descriptor: isize, offset: usize, endianness: bool, ) -> (Self, usize)

Source§

fn read_from_pointer( bytes_pointer: *const u8, offset: usize, endianness: bool, ) -> (Self, usize)

Source§

fn read_from_path_offsets( path: &str, offsets: &[usize], endianness: bool, ) -> (&'static mut [Self], isize)

Source§

fn read_from_file_descriptor_offsets( file_descriptor: isize, offsets: &[usize], endianness: bool, ) -> (&'static mut [Self], isize)

Source§

fn read_from_pointer_offsets( bytes_pointer: *const u8, offsets: &[usize], endianness: bool, ) -> &'static mut [Self]

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<U> Userspace for U
where U: Bytes<Origin, Origin>,