Struct goblin::pe::optional_header::StandardFields
source · [−]pub struct StandardFields {
pub magic: u16,
pub major_linker_version: u8,
pub minor_linker_version: u8,
pub size_of_code: u64,
pub size_of_initialized_data: u64,
pub size_of_uninitialized_data: u64,
pub address_of_entry_point: u64,
pub base_of_code: u64,
pub base_of_data: u32,
}
Expand description
Unified 32/64-bit COFF fields
Fields
magic: u16
major_linker_version: u8
minor_linker_version: u8
size_of_code: u64
size_of_initialized_data: u64
size_of_uninitialized_data: u64
address_of_entry_point: u64
base_of_code: u64
base_of_data: u32
absent in 64-bit PE32+
Trait Implementations
sourceimpl Clone for StandardFields
impl Clone for StandardFields
sourcefn clone(&self) -> StandardFields
fn clone(&self) -> StandardFields
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StandardFields
impl Debug for StandardFields
sourceimpl Default for StandardFields
impl Default for StandardFields
sourcefn default() -> StandardFields
fn default() -> StandardFields
Returns the “default value” for a type. Read more
sourceimpl From<StandardFields32> for StandardFields
impl From<StandardFields32> for StandardFields
sourcefn from(fields: StandardFields32) -> Self
fn from(fields: StandardFields32) -> Self
Performs the conversion.
sourceimpl From<StandardFields64> for StandardFields
impl From<StandardFields64> for StandardFields
sourcefn from(fields: StandardFields64) -> Self
fn from(fields: StandardFields64) -> Self
Performs the conversion.
sourceimpl PartialEq<StandardFields> for StandardFields
impl PartialEq<StandardFields> for StandardFields
sourcefn eq(&self, other: &StandardFields) -> bool
fn eq(&self, other: &StandardFields) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StandardFields) -> bool
fn ne(&self, other: &StandardFields) -> bool
This method tests for !=
.
impl Copy for StandardFields
impl StructuralPartialEq for StandardFields
Auto Trait Implementations
impl RefUnwindSafe for StandardFields
impl Send for StandardFields
impl Sync for StandardFields
impl Unpin for StandardFields
impl UnwindSafe for StandardFields
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more