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

pub struct MachOFile<'data, Mach: MachHeader> { /* 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: MachHeader> MachOFile<'data, Mach>[src]

pub fn parse(data: &'data [u8]) -> Result<Self>[src]

Parse the raw Mach-O file data.

Trait Implementations

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

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

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

A segment in the object file.

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

An iterator over the segments in the object file.

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

A section in the object file.

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

An iterator over the sections in the object file.

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

An iterator over the symbols in the object file.

Auto Trait Implementations

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

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

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

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.