1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
/// Formatting macro for constructing `Ident`s.
///
/// <br>
///
/// # Syntax
///
/// Syntax is copied from the [`format!`] macro, supporting both positional and
/// named arguments.
#[macro_export]
macro_rules! format_ident {
    ($($fmt:tt)*) => {
        $crate::Ident::new(format!($($fmt)*))
    };
}