[−][src]Struct symbolic_debuginfo::macho::FatMachO
A fat MachO container that hosts one or more MachObject
s.
Methods
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<Self, MachError>
[src]
Tries to parse a fat MachO container from the given slice.
ⓘImportant traits for FatMachObjectIterator<'d, 'a>pub fn objects(&self) -> FatMachObjectIterator<'d, '_>
[src]
ⓘImportant traits for FatMachObjectIterator<'d, 'a>
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]
&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
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.