Struct object::read::macho::MachOFile [−][src]
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 Comdat = MachOComdat<'data, 'file, Mach>
A COMDAT section group in the object file.
type ComdatIterator = MachOComdatIterator<'data, 'file, Mach>
An iterator over the COMDAT section groups in the object file.
type Symbol = MachOSymbol<'data, 'file, Mach>
A symbol in the object file.
type SymbolIterator = MachOSymbolIterator<'data, 'file, Mach>
An iterator over symbols in the object file.
type SymbolTable = MachOSymbolTable<'data, 'file, Mach>
A symbol table in the object file.
type DynamicRelocationIterator = NoDynamicRelocationIterator
An iterator over dynamic relocations in the file. Read more
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 comdats(&'file self) -> MachOComdatIterator<'data, 'file, Mach>ⓘNotable traits for MachOComdatIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOComdatIterator<'data, 'file, Mach> type Item = MachOComdat<'data, 'file, Mach>;
[src]
Notable traits for MachOComdatIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOComdatIterator<'data, 'file, Mach> type Item = MachOComdat<'data, 'file, Mach>;
fn symbol_by_index(
&'file self,
index: SymbolIndex
) -> Result<MachOSymbol<'data, 'file, Mach>>
[src]
&'file self,
index: SymbolIndex
) -> Result<MachOSymbol<'data, 'file, Mach>>
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 = MachOSymbol<'data, 'file, Mach>;
[src]
Notable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = MachOSymbol<'data, 'file, Mach>;
fn symbol_table(&'file self) -> Option<MachOSymbolTable<'data, 'file, Mach>>
[src]
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 = MachOSymbol<'data, 'file, Mach>;
[src]
Notable traits for MachOSymbolIterator<'data, 'file, Mach>
impl<'data, 'file, Mach: MachHeader> Iterator for MachOSymbolIterator<'data, 'file, Mach> type Item = MachOSymbol<'data, 'file, Mach>;
fn dynamic_symbol_table(
&'file self
) -> Option<MachOSymbolTable<'data, 'file, Mach>>
[src]
&'file self
) -> Option<MachOSymbolTable<'data, 'file, Mach>>
fn object_map(&'file self) -> ObjectMap<'data>
[src]
fn imports(&self) -> Result<Vec<Import<'data>>>
[src]
fn exports(&self) -> Result<Vec<Export<'data>>>
[src]
fn dynamic_relocations(&'file self) -> Option<NoDynamicRelocationIterator>
[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_map(&'file self) -> SymbolMap<SymbolMapName<'data>>
[src]
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,
pub 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.
pub 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>,