pub struct OffsetToID { /* private fields */ }
Expand description
Maps memory offsets to unique IDs using a sorted list for quick lookup.
Implementations§
Source§impl OffsetToID
impl OffsetToID
Sourcepub fn new() -> Result<Self, PoisonError<RwLockReadGuard<'static, Mapping>>>
pub fn new() -> Result<Self, PoisonError<RwLockReadGuard<'static, Mapping>>>
Creates a new Offset2ID
instance by loading the offset-to-ID mapping(Global instance).
§Errors
If poisoned.
§Note
Parse the binary table of bin data in AddressLibrary
and arrange the offset/id pair structures in order of offset,
noting that a call to Clone::clone
is made to prevent sort from destroying the existing table.
Trait Implementations§
Source§impl Clone for OffsetToID
impl Clone for OffsetToID
Source§fn clone(&self) -> OffsetToID
fn clone(&self) -> OffsetToID
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OffsetToID
impl Debug for OffsetToID
Source§impl Hash for OffsetToID
impl Hash for OffsetToID
Source§impl Ord for OffsetToID
impl Ord for OffsetToID
Source§fn cmp(&self, other: &OffsetToID) -> Ordering
fn cmp(&self, other: &OffsetToID) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OffsetToID
impl PartialEq for OffsetToID
Source§impl PartialOrd for OffsetToID
impl PartialOrd for OffsetToID
impl Eq for OffsetToID
impl StructuralPartialEq for OffsetToID
Auto Trait Implementations§
impl Freeze for OffsetToID
impl RefUnwindSafe for OffsetToID
impl Send for OffsetToID
impl Sync for OffsetToID
impl Unpin for OffsetToID
impl UnwindSafe for OffsetToID
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