macro_rules! tt_is_ident {
{
$caller:tt
input = [{ $ident:ident }]
} => { ... };
{
$caller:tt
input = [{ $other:tt }]
} => { ... };
}
Predicate that accepts a single token and determines whether it is an
identifier.
[tt-call]
An identifier is anything that matches Rust's $:ident
fragment.
input = [{
a single token tree }]
is_ident = [{
either true or false }]