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