Module parse

Source

Traits§

LookaheadToken
Trait defining a token that can be consumed by syn::parse::ParseBuffer::step.

Functions§

accumulate_while
Accumulate proc_macro2::TokenTree into a proc_macro2::TokenStream while the given predicate returns true returning a tuple containing the resulting proc_macro2::TokenStream and a syn::buffer::Cursor positioned at the point where accumulation ended.