Struct object::File [−][src]
pub struct File<'data> { /* fields omitted */ }An object file.
Methods
impl<'data> File<'data>[src]
impl<'data> File<'data>Trait Implementations
impl<'data> Debug for File<'data>[src]
impl<'data> Debug for File<'data>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'data, 'file> Object<'data, 'file> for File<'data> where
'data: 'file, [src]
impl<'data, 'file> Object<'data, 'file> for File<'data> where
'data: 'file, type Segment = Segment<'data, 'file>
A segment in the object file.
type SegmentIterator = SegmentIterator<'data, 'file>
An iterator over the segments in the object file.
type Section = Section<'data, 'file>
A section in the object file.
type SectionIterator = SectionIterator<'data, 'file>
An iterator over the sections in the object file.
type SymbolIterator = SymbolIterator<'data, 'file>
An iterator over the symbols in the object file.
fn machine(&self) -> Machine[src]
fn machine(&self) -> MachineGet the machine type of the file.
ⓘImportant traits for SegmentIterator<'data, 'file>fn segments(&'file self) -> SegmentIterator<'data, 'file>[src]
fn segments(&'file self) -> SegmentIterator<'data, 'file>Get an iterator over the segments in the file.
fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'data, [u8]>>[src]
fn section_data_by_name(&self, section_name: &str) -> Option<Cow<'data, [u8]>>Get the contents of the section named section_name, if such a section exists. Read more
ⓘImportant traits for SectionIterator<'data, 'file>fn sections(&'file self) -> SectionIterator<'data, 'file>[src]
fn sections(&'file self) -> SectionIterator<'data, 'file>Get an iterator over the sections in the file.
ⓘImportant traits for SymbolIterator<'data, 'file>fn symbols(&'file self) -> SymbolIterator<'data, 'file>[src]
fn symbols(&'file self) -> SymbolIterator<'data, 'file>Get an iterator over the debugging symbols in the file.
ⓘImportant traits for SymbolIterator<'data, 'file>fn dynamic_symbols(&'file self) -> SymbolIterator<'data, 'file>[src]
fn dynamic_symbols(&'file self) -> SymbolIterator<'data, 'file>Get an iterator over the dynamic linking symbols in the file.
fn symbol_map(&self) -> SymbolMap<'data>[src]
fn symbol_map(&self) -> SymbolMap<'data>Construct a map from addresses to symbols.
fn is_little_endian(&self) -> bool[src]
fn is_little_endian(&self) -> boolReturn true if the file is little endian, false if it is big endian.
fn has_debug_symbols(&self) -> bool[src]
fn has_debug_symbols(&self) -> boolReturn true if the file contains debug information sections, false if not.
fn mach_uuid(&self) -> Option<Uuid>[src]
fn mach_uuid(&self) -> Option<Uuid>The UUID from a Mach-O LC_UUID load command.
fn build_id(&self) -> Option<&'data [u8]>[src]
fn build_id(&self) -> Option<&'data [u8]>The build ID from an ELF NT_GNU_BUILD_ID note.
fn gnu_debuglink(&self) -> Option<(&'data [u8], u32)>[src]
fn gnu_debuglink(&self) -> Option<(&'data [u8], u32)>The filename and CRC from a .gnu_debuglink section.
fn entry(&self) -> u64[src]
fn entry(&self) -> u64Get the entry point address of the binary