Struct time_graph::CallSite [−][src]
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
impl RefUnwindSafe for CallSite
impl Send for CallSite
impl Sync for CallSite
impl Unpin for CallSite
impl UnwindSafe for CallSite
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,
pub 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.
pub 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>,