Struct object::read::pe::PeFile[][src]

pub struct PeFile<'data, Pe, R = &'data [u8]> where
    Pe: ImageNtHeaders,
    R: ReadRef<'data>, 
{ /* fields omitted */ }

A PE object file.

Implementations

impl<'data, Pe, R> PeFile<'data, Pe, R> where
    Pe: ImageNtHeaders,
    R: ReadRef<'data>, 
[src]

pub fn parse(data: R) -> Result<Self>[src]

Parse the raw PE file data.

pub fn dos_header(&self) -> &'data ImageDosHeader[src]

Return the DOS header of this file

pub fn nt_headers(&self) -> &'data Pe[src]

Return the NT Headers of this file

Trait Implementations

impl<'data, Pe: Debug, R: Debug> Debug for PeFile<'data, Pe, R> where
    Pe: ImageNtHeaders,
    R: ReadRef<'data>, 
[src]

impl<'data, 'file, Pe, R> Object<'data, 'file> for PeFile<'data, Pe, R> where
    'data: 'file,
    Pe: ImageNtHeaders,
    R: 'file + ReadRef<'data>, 
[src]

type Segment = PeSegment<'data, 'file, Pe, R>

A segment in the object file.

type SegmentIterator = PeSegmentIterator<'data, 'file, Pe, R>

An iterator over the segments in the object file.

type Section = PeSection<'data, 'file, Pe, R>

A section in the object file.

type SectionIterator = PeSectionIterator<'data, 'file, Pe, R>

An iterator over the sections in the object file.

type Comdat = PeComdat<'data, 'file, Pe, R>

A COMDAT section group in the object file.

type ComdatIterator = PeComdatIterator<'data, 'file, Pe, R>

An iterator over the COMDAT section groups in the object file.

type Symbol = CoffSymbol<'data, 'file>

A symbol in the object file.

type SymbolIterator = CoffSymbolIterator<'data, 'file>

An iterator over symbols in the object file.

type SymbolTable = CoffSymbolTable<'data, 'file>

A symbol table in the object file.

type DynamicRelocationIterator = NoDynamicRelocationIterator

An iterator over dynamic relocations in the file. Read more

Auto Trait Implementations

impl<'data, Pe, R> RefUnwindSafe for PeFile<'data, Pe, R> where
    Pe: RefUnwindSafe,
    R: RefUnwindSafe

impl<'data, Pe, R> Send for PeFile<'data, Pe, R> where
    Pe: Sync,
    R: Send

impl<'data, Pe, R> Sync for PeFile<'data, Pe, R> where
    Pe: Sync,
    R: Sync

impl<'data, Pe, R> Unpin for PeFile<'data, Pe, R> where
    R: Unpin

impl<'data, Pe, R> UnwindSafe for PeFile<'data, Pe, R> where
    Pe: RefUnwindSafe,
    R: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.

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.