pub fn is_exhaustive<'i, 't, A, I>(tokens: I) -> bool
where
    't: 'i,
    A: 't,
    I: IntoIterator<Item = &'i Token<'t, A>>,
{
    let component = token::components(tokens).last();
    matches!(
        component.map(|component| {
            (
                component.depth(),
                component.variance::<InvariantText>().boundedness(),
            )
        }),
        Some((Boundedness::Open, Boundedness::Open)),
    )
}
Returns `true` if the token tree is exhaustive.

A glob expression and its token tree are exhaustive if the terminal
component has unbounded depth and unbounded variance.
crates/turborepo-wax/src/token/variance.rs