[−][src]Struct object::read::macho::MachOFile
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]
Trait Implementations
impl<'data, Mach: Debug + MachHeader> Debug for MachOFile<'data, Mach> where
Mach::Endian: Debug,
[src]
Mach::Endian: Debug,
impl<'data, 'file, Mach> Object<'data, 'file> for MachOFile<'data, Mach> where
'data: 'file,
Mach: MachHeader,
[src]
'data: 'file,
Mach: MachHeader,
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.
fn architecture(&self) -> Architecture
[src]
fn is_little_endian(&self) -> bool
[src]
fn is_64(&self) -> bool
[src]
fn segments(&'file self) -> MachOSegmentIterator<'data, 'file, Mach>ⓘNotable traits for MachOSegmentIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSegmentIterator<'data, 'file, Mach> type Item = MachOSegment<'data, 'file, Mach>;
[src]
Notable traits for MachOSegmentIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSegmentIterator<'data, 'file, Mach> type Item = MachOSegment<'data, 'file, Mach>;
fn section_by_name(
&'file self,
section_name: &str
) -> Option<MachOSection<'data, 'file, Mach>>
[src]
&'file self,
section_name: &str
) -> Option<MachOSection<'data, 'file, Mach>>
fn section_by_index(
&'file self,
index: SectionIndex
) -> Result<MachOSection<'data, 'file, Mach>>
[src]
&'file self,
index: SectionIndex
) -> Result<MachOSection<'data, 'file, Mach>>
fn sections(&'file self) -> MachOSectionIterator<'data, 'file, Mach>ⓘNotable traits for MachOSectionIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSectionIterator<'data, 'file, Mach> type Item = MachOSection<'data, 'file, Mach>;
[src]
Notable traits for MachOSectionIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSectionIterator<'data, 'file, Mach> type Item = MachOSection<'data, 'file, Mach>;
fn symbol_by_index(&self, index: SymbolIndex) -> Result<Symbol<'data>>
[src]
fn symbols(&'file self) -> MachOSymbolIterator<'data, 'file, Mach>ⓘNotable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = (SymbolIndex, Symbol<'data>);
[src]
Notable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = (SymbolIndex, Symbol<'data>);
fn dynamic_symbols(&'file self) -> MachOSymbolIterator<'data, 'file, Mach>ⓘNotable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = (SymbolIndex, Symbol<'data>);
[src]
Notable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = (SymbolIndex, Symbol<'data>);
fn symbol_map(&self) -> SymbolMap<'data>
[src]
fn has_debug_symbols(&self) -> bool
[src]
fn mach_uuid(&self) -> Result<Option<[u8; 16]>>
[src]
fn entry(&self) -> u64
[src]
fn flags(&self) -> FileFlags
[src]
fn endianness(&self) -> Endianness
[src]
fn symbol_data(
&'file self,
symbol: &Symbol<'data>
) -> Result<Option<&'data [u8]>>
[src]
&'file self,
symbol: &Symbol<'data>
) -> Result<Option<&'data [u8]>>
fn build_id(&self) -> Result<Option<&'data [u8]>>
[src]
fn gnu_debuglink(&self) -> Result<Option<(&'data [u8], u32)>>
[src]
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,
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,
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,
<Mach as MachHeader>::Endian: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,