Skip to main content

any_token

Function any_token 

Source
fn any_token(
    tokens: TokenStream,
    f: &dyn Fn(&[TokenTree], usize) -> bool,
) -> bool
Expand description

Scans tokens outside closures and async blocks, which decide for themselves when they run, and outside macro arguments, whose effects psync cannot see (assert!(cmd.status()?..) must not become a blocking statement with no effects).