pub struct ObjectMap<'data> {
symbols: SymbolMap<ObjectMapEntry<'data>>,
objects: Vec<ObjectMapFile<'data>>,
}
Expand description
A map from addresses to symbol names and object files.
This is derived from STAB entries in Mach-O files.
Returned by Object::object_map
.
Fields§
§symbols: SymbolMap<ObjectMapEntry<'data>>
§objects: Vec<ObjectMapFile<'data>>
Implementations§
source§impl<'data> ObjectMap<'data>
impl<'data> ObjectMap<'data>
sourcepub fn get(&self, address: u64) -> Option<&ObjectMapEntry<'data>>
pub fn get(&self, address: u64) -> Option<&ObjectMapEntry<'data>>
Get the entry containing the given address.
sourcepub fn symbols(&self) -> &[ObjectMapEntry<'data>]
pub fn symbols(&self) -> &[ObjectMapEntry<'data>]
Get all symbols in the map.
sourcepub fn objects(&self) -> &[ObjectMapFile<'data>]
pub fn objects(&self) -> &[ObjectMapFile<'data>]
Get all objects in the map.
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for ObjectMap<'data>
impl<'data> RefUnwindSafe for ObjectMap<'data>
impl<'data> Send for ObjectMap<'data>
impl<'data> Sync for ObjectMap<'data>
impl<'data> Unpin for ObjectMap<'data>
impl<'data> UnwindSafe for ObjectMap<'data>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)