Struct symbolic_symcache::SymCache
source · pub struct SymCache<'data> { /* private fields */ }
Expand description
The serialized SymCache binary format.
This can be parsed from a binary buffer via SymCache::parse
and lookups on it can be performed
via the SymCache::lookup
method.
Implementations§
source§impl<'data> SymCache<'data>
impl<'data> SymCache<'data>
sourcepub fn lookup(&self, addr: u64) -> SourceLocations<'data, '_> ⓘ
pub fn lookup(&self, addr: u64) -> SourceLocations<'data, '_> ⓘ
Looks up an instruction address in the SymCache, yielding an iterator of SourceLocation
s
representing a hierarchy of inlined function calls.
sourcepub fn functions(&self) -> Functions<'data> ⓘ
pub fn functions(&self) -> Functions<'data> ⓘ
An iterator over the functions in this SymCache.
Only functions with a valid entry pc, i.e., one not equal to u32::MAX
,
will be returned.
Note that functions are not returned ordered by name or entry pc,
but in insertion order, which is essentially random.
source§impl<'data> SymCache<'data>
impl<'data> SymCache<'data>
Trait Implementations§
source§impl<'data> PartialEq for SymCache<'data>
impl<'data> PartialEq for SymCache<'data>
impl<'data> Eq for SymCache<'data>
impl<'data> StructuralEq for SymCache<'data>
impl<'data> StructuralPartialEq for SymCache<'data>
Auto Trait Implementations§
impl<'data> RefUnwindSafe for SymCache<'data>
impl<'data> Send for SymCache<'data>
impl<'data> Sync for SymCache<'data>
impl<'data> Unpin for SymCache<'data>
impl<'data> UnwindSafe for SymCache<'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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more