Macro tt_call::tt_is_ident

source ·
macro_rules! tt_is_ident {
    {
        $caller:tt
        input = [{ $ident:ident }]
    } => { ... };
    {
        $caller:tt
        input = [{ $other:tt }]
    } => { ... };
}
Expand description

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

  • input = [{ a single token tree }]

§Output

  • is_ident = [{ either true or false }]