[][src]Struct symbolic_symcache::Function

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

A function in a SymCache.

This can be an actual function, an inlined function, or a public symbol.

Implementations

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

pub fn id(&self) -> usize[src]

The ID of the function.

pub fn parent_id(&self) -> Option<usize>[src]

The ID of the parent function, if this function was inlined.

pub fn address(&self) -> u64[src]

The address where the function starts.

pub fn symbol(&self) -> &'a str[src]

The raw name of the function.

pub fn language(&self) -> Language[src]

The language of the function.

pub fn name(&self) -> Name<'_>[src]

The name of the function suitable for demangling.

Use symbolic::demangle for demangling this symbol.

pub fn compilation_dir(&self) -> &str[src]

The compilation dir of the function.

pub fn lines(&self) -> Lines<'a>

Notable traits for Lines<'a>

impl<'a> Iterator for Lines<'a> type Item = Result<Line<'a>, SymCacheError>;
[src]

An iterator over all lines in the function.

Trait Implementations

impl<'a> Clone for Function<'a>[src]

impl<'_> Debug for Function<'_>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Function<'a>

impl<'a> Send for Function<'a>

impl<'a> Sync for Function<'a>

impl<'a> Unpin for Function<'a>

impl<'a> UnwindSafe for Function<'a>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.