Struct symbolic_debuginfo::macho::FatMachO
source · pub struct FatMachO<'d> { /* private fields */ }
Expand description
A fat MachO container that hosts one or more MachObject
s.
Implementations§
source§impl<'d> FatMachO<'d>
impl<'d> FatMachO<'d>
sourcepub fn parse(data: &'d [u8]) -> Result<Self, MachError>
pub fn parse(data: &'d [u8]) -> Result<Self, MachError>
Tries to parse a fat MachO container from the given slice.
sourcepub fn objects(&self) -> FatMachObjectIterator<'d, '_> ⓘ
pub fn objects(&self) -> FatMachObjectIterator<'d, '_> ⓘ
Returns an iterator over objects in this container.
sourcepub fn object_count(&self) -> usize
pub fn object_count(&self) -> usize
Returns the number of objects in this archive.
sourcepub fn object_by_index(
&self,
index: usize,
) -> Result<Option<MachObject<'d>>, MachError>
pub fn object_by_index( &self, index: usize, ) -> Result<Option<MachObject<'d>>, MachError>
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§
Auto Trait Implementations§
impl<'d> Freeze for FatMachO<'d>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more