[−][src]Struct symbolic_symcache::SymCache
A platform independent symbolication cache.
Use SymCacheWriter
writer to create SymCaches, including the conversion from object files.
Implementations
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>
[src]
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 inling 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
.
fn as_self(&'slf self) -> &Self::Ref
[src]
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,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,