pub struct CallSite { /* private fields */ }
A CallSite identify uniquely a location in the source code, and record multiple attributes associated with this location.
CallSite
The only way to create a CallSite is with the callsite macro, which also takes care of registering the call site globally.
callsite
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.
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U