Struct time_graph::CallSite[][src]

pub struct CallSite { /* fields omitted */ }

A CallSite identify uniquely a location in the source code, and record multiple attributes associated with this location.

The only way to create a CallSite is with the callsite macro, which also takes care of registering the call site globally.

Implementations

impl CallSite[src]

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

Get the user-provided name for this call site

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

Get the rust module path to the source code location of this call site

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

Get the path to the file containing this call site

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

Get the line of the source file containing this call site

pub fn full_name(&self) -> String[src]

Get the full name of this call site, containing both the name and the module path.

Auto Trait Implementations

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, 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.