SymbolMap

Struct SymbolMap 

Source
pub struct SymbolMap<H: FileAndPathHelper> { /* private fields */ }

Implementations§

Source§

impl<H: FileAndPathHelper> SymbolMap<H>

Source

pub fn with_symbol_map_trait( debug_file_location: H::FL, inner: Arc<dyn SymbolMapTrait + Send + Sync>, ) -> Self

Source

pub fn debug_file_location(&self) -> &H::FL

Source

pub fn debug_id(&self) -> DebugId

Source

pub fn symbol_count(&self) -> usize

Source

pub fn iter_symbols(&self) -> Box<dyn Iterator<Item = (u32, Cow<'_, str>)> + '_>

Source

pub fn lookup_sync(&self, address: LookupAddress) -> Option<SyncAddressInfo>

Source

pub async fn lookup(&self, address: LookupAddress) -> Option<AddressInfo>

Source

pub async fn lookup_external( &self, external: &ExternalFileAddressRef, ) -> Option<Vec<FrameDebugInfo>>

Resolve a debug info lookup for which SymbolMap::lookup_* returned a FramesLookupResult::External.

This method is asynchronous because it may load a new external file.

This keeps the most recent external file cached, so that repeated lookups for the same external file are fast.

Auto Trait Implementations§

§

impl<H> Freeze for SymbolMap<H>
where <H as FileAndPathHelper>::FL: Freeze,

§

impl<H> !RefUnwindSafe for SymbolMap<H>

§

impl<H> Send for SymbolMap<H>
where <H as FileAndPathHelper>::FL: Send, H: Sync + Send,

§

impl<H> Sync for SymbolMap<H>
where <H as FileAndPathHelper>::FL: Sync, H: Sync + Send,

§

impl<H> Unpin for SymbolMap<H>
where <H as FileAndPathHelper>::FL: Unpin,

§

impl<H> !UnwindSafe for SymbolMap<H>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,