Skip to main content

trait_metadata_macro_ident

Function trait_metadata_macro_ident 

Source
pub(crate) fn trait_metadata_macro_ident(trait_name: &Ident) -> Ident
Expand description

A private export name for a trait’s metadata macro. The public macro is re-exported beside the trait under the trait’s own name, in Rust’s separate macro namespace, so imports carry both. An expansion-local suffix prevents same-named traits in different modules from colliding at the crate root. This name never enters the trait tag or any C/wasm registration symbol.