[−][src]Macro tracing_core::identify_callsite
Statically constructs an Identifier
for the provided Callsite
.
This may be used in contexts, such as static initializers, where the
Callsite::id
function is not currently usable.
For example:
use tracing_core::callsite; pub struct MyCallsite { // ... } impl callsite::Callsite for MyCallsite { // ... } static CALLSITE: MyCallsite = MyCallsite { // ... }; static CALLSITE_ID: callsite::Identifier = identify_callsite!(&CALLSITE);