pub struct CallSite { /* private fields */ }
Expand description

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

Get the user-provided name for this call site

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

Get the path to the file containing this call site

Get the line of the source file containing this call site

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.