[][src]Struct symbolic::debuginfo::macho::FatMachO

pub struct FatMachO<'d> { /* fields omitted */ }

A fat MachO container that hosts one or more MachObjects.

Implementations

impl<'d> FatMachO<'d>[src]

pub fn test(data: &[u8]) -> bool[src]

Tests whether the buffer could contain an ELF object.

pub fn parse(data: &'d [u8]) -> Result<FatMachO<'d>, MachError>[src]

Tries to parse a fat MachO container from the given slice.

pub fn objects(&self) -> FatMachObjectIterator<'d, '_>

Notable traits for FatMachObjectIterator<'d, 'a>

impl<'d, 'a> Iterator for FatMachObjectIterator<'d, 'a> type Item = Result<MachObject<'d>, MachError>;
[src]

Returns an iterator over objects in this container.

pub fn object_count(&self) -> usize[src]

Returns the number of objects in this archive.

pub fn object_by_index(
    &self,
    index: usize
) -> Result<Option<MachObject<'d>>, MachError>
[src]

Resolves the object at the given index.

Returns Ok(None) if the index is out of bounds, or Err if the object exists but cannot be parsed.

Trait Implementations

impl<'slf, 'd> AsSelf<'slf> for FatMachO<'d> where
    'd: 'slf, 
[src]

type Ref = FatMachO<'slf>

The Self type with 'slf lifetimes, returned by as_self.

impl<'_> Debug for FatMachO<'_>[src]

Auto Trait Implementations

impl<'d> RefUnwindSafe for FatMachO<'d>

impl<'d> Send for FatMachO<'d>

impl<'d> Sync for FatMachO<'d>

impl<'d> Unpin for FatMachO<'d>

impl<'d> UnwindSafe for FatMachO<'d>

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.