Macro format_cached_ident
Source macro_rules! format_cached_ident {
($($args:tt)*) => { ... };
}
Expand description
Generates a CachedIdent from a format specification.
§Panics
Panics when the formatted string is not a valid identifier.
§Example
use unsynn::*;
let cached_ident = format_cached_ident!("my_{}", "identifier");
assert_tokens_eq!(cached_ident, "my_identifier");