Struct object::read::macho::MachOFile[][src]

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

A partially parsed Mach-O file.

Most of the functionality of this type is provided by the Object trait implementation.

Implementations

impl<'data, Mach, R> MachOFile<'data, Mach, R> where
    Mach: MachHeader,
    R: ReadRef<'data>, 
[src]

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

Parse the raw Mach-O file data.

Trait Implementations

impl<'data, Mach: Debug, R: Debug> Debug for MachOFile<'data, Mach, R> where
    Mach: MachHeader,
    R: ReadRef<'data>,
    Mach::Endian: Debug
[src]

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

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

A segment in the object file.

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

An iterator over the segments in the object file.

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

A section in the object file.

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

An iterator over the sections in the object file.

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

A COMDAT section group in the object file.

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

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

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

A symbol in the object file.

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

An iterator over symbols in the object file.

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

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, Mach, R> RefUnwindSafe for MachOFile<'data, Mach, R> where
    Mach: RefUnwindSafe,
    R: RefUnwindSafe,
    <Mach as MachHeader>::Endian: RefUnwindSafe,
    <Mach as MachHeader>::Nlist: RefUnwindSafe,
    <Mach as MachHeader>::Section: RefUnwindSafe

impl<'data, Mach, R> Send for MachOFile<'data, Mach, R> where
    Mach: Sync,
    R: Send,
    <Mach as MachHeader>::Endian: Send,
    <Mach as MachHeader>::Nlist: Sync,
    <Mach as MachHeader>::Section: Sync

impl<'data, Mach, R> Sync for MachOFile<'data, Mach, R> where
    Mach: Sync,
    R: Sync,
    <Mach as MachHeader>::Endian: Sync,
    <Mach as MachHeader>::Nlist: Sync,
    <Mach as MachHeader>::Section: Sync

impl<'data, Mach, R> Unpin for MachOFile<'data, Mach, R> where
    R: Unpin,
    <Mach as MachHeader>::Endian: Unpin

impl<'data, Mach, R> UnwindSafe for MachOFile<'data, Mach, R> where
    Mach: RefUnwindSafe,
    R: UnwindSafe,
    <Mach as MachHeader>::Endian: UnwindSafe,
    <Mach as MachHeader>::Nlist: RefUnwindSafe,
    <Mach as MachHeader>::Section: RefUnwindSafe

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.