Struct lief_sys::Pe_OptionalHeader_t[][src]

#[repr(C)]
pub struct Pe_OptionalHeader_t {
Show fields pub magic: LIEF_PE_PE_TYPES, pub major_linker_version: u8, pub minor_linker_version: u8, pub sizeof_code: u32, pub sizeof_initialized_data: u32, pub sizeof_uninitialized_data: u32, pub addressof_entrypoint: u32, pub baseof_code: u32, pub baseof_data: u32, pub imagebase: u64, pub section_alignment: u32, pub file_alignment: u32, pub major_operating_system_version: u16, pub minor_operating_system_version: u16, pub major_image_version: u16, pub minor_image_version: u16, pub major_subsystem_version: u16, pub minor_subsystem_version: u16, pub win32_version_value: u32, pub sizeof_image: u32, pub sizeof_headers: u32, pub checksum: u32, pub subsystem: LIEF_PE_SUBSYSTEM, pub dll_characteristics: u32, pub sizeof_stack_reserve: u64, pub sizeof_stack_commit: u64, pub sizeof_heap_reserve: u64, pub sizeof_heap_commit: u64, pub loader_flags: u32, pub numberof_rva_and_size: u32,
}

Fields

magic: LIEF_PE_PE_TYPESmajor_linker_version: u8minor_linker_version: u8sizeof_code: u32sizeof_initialized_data: u32sizeof_uninitialized_data: u32addressof_entrypoint: u32baseof_code: u32baseof_data: u32imagebase: u64section_alignment: u32file_alignment: u32major_operating_system_version: u16minor_operating_system_version: u16major_image_version: u16minor_image_version: u16major_subsystem_version: u16minor_subsystem_version: u16win32_version_value: u32sizeof_image: u32sizeof_headers: u32checksum: u32subsystem: LIEF_PE_SUBSYSTEMdll_characteristics: u32sizeof_stack_reserve: u64sizeof_stack_commit: u64sizeof_heap_reserve: u64sizeof_heap_commit: u64loader_flags: u32numberof_rva_and_size: u32

Trait Implementations

impl Clone for Pe_OptionalHeader_t[src]

fn clone(&self) -> Pe_OptionalHeader_t[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Pe_OptionalHeader_t[src]

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

Formats the value using the given formatter. Read more

impl Copy for Pe_OptionalHeader_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.