pub struct Header {
pub dos_header: DosHeader,
pub dos_stub: DosStub,
pub signature: u32,
pub coff_header: CoffHeader,
pub optional_header: Option<OptionalHeader>,
}
Expand description
The PE header.
§Position in a modern PE file
The PE header is located at the very beginning of the file and is followed by the section table and sections.
Fields§
§dos_header: DosHeader
§dos_stub: DosStub
DOS program for legacy loaders
signature: u32
PE Magic: PE\0\0, little endian
coff_header: CoffHeader
§optional_header: Option<OptionalHeader>
Implementations§
Trait Implementations§
source§impl PartialEq for Header
impl PartialEq for Header
source§impl TryIntoCtx<Endian> for Header
impl TryIntoCtx<Endian> for Header
impl Copy for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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