Struct object::read::File[][src]

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

An object file.

Most functionality is provided by the Object trait implementation.

Implementations

impl<'data, R: ReadRef<'data>> File<'data, R>[src]

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

Parse the raw file data.

pub fn format(&self) -> BinaryFormat[src]

Return the file format.

Trait Implementations

impl<'data, R: Debug + ReadRef<'data>> Debug for File<'data, R>[src]

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

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

A segment in the object file.

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

An iterator over the segments in the object file.

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

A section in the object file.

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

An iterator over the sections in the object file.

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

A COMDAT section group in the object file.

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

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

type Symbol = Symbol<'data, 'file, R>

A symbol in the object file.

type SymbolIterator = SymbolIterator<'data, 'file, R>

An iterator over symbols in the object file.

type SymbolTable = SymbolTable<'data, 'file, R>

A symbol table in the object file.

type DynamicRelocationIterator = DynamicRelocationIterator<'data, 'file, R>

An iterator over dynamic relocations in the file. Read more

Auto Trait Implementations

impl<'data, R> RefUnwindSafe for File<'data, R> where
    R: RefUnwindSafe

impl<'data, R> Send for File<'data, R> where
    R: Send

impl<'data, R> Sync for File<'data, R> where
    R: Sync

impl<'data, R> Unpin for File<'data, R> where
    R: Unpin

impl<'data, R> UnwindSafe for File<'data, R> where
    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.