Struct symbolic_symcache::SymCache[][src]

pub struct SymCache<'a> { /* fields omitted */ }

A platform independent symbolication cache.

Use SymCacheWriter writer to create SymCaches, including the conversion from object files.


impl<'a> SymCache<'a>[src]

pub fn parse(data: &'a [u8]) -> Result<Self, SymCacheError>[src]

Parses a SymCache from a binary buffer.

pub fn version(&self) -> u32[src]

The version of the SymCache file format.

pub fn is_latest(&self) -> bool[src]

Returns whether this cache is up-to-date.

pub fn arch(&self) -> Arch[src]

The architecture of the symbol file.

pub fn debug_id(&self) -> DebugId[src]

The debuig identifier of the cache file.

pub fn has_line_info(&self) -> bool[src]

Returns true if line information is included.

pub fn has_file_info(&self) -> bool[src]

Returns true if file information is included.

pub fn functions(&self) -> Functions<'a>

Notable traits for Functions<'a>

impl<'a> Iterator for Functions<'a> type Item = Result<Function<'a>, SymCacheError>;

Returns an iterator over all functions.

pub fn lookup(&self, addr: u64) -> Result<Lookup<'a, '_>, SymCacheError>[src]

Given an address this looks up the symbol at that point.

Because of inline information this returns a vector of zero or more symbols. If nothing is found then the return value will be an empty vector.

Trait Implementations

impl<'slf, 'd: 'slf> AsSelf<'slf> for SymCache<'d>[src]

type Ref = SymCache<'slf>

The Self type with 'slf lifetimes, returned by as_self.

impl Debug for SymCache<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SymCache<'a>

impl<'a> Send for SymCache<'a>

impl<'a> Sync for SymCache<'a>

impl<'a> Unpin for SymCache<'a>

impl<'a> UnwindSafe for SymCache<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.