paralegal_flow::ann::parse

Function one_token

Source
pub fn one_token(i: I<'_>) -> IResult<I<'_>, &Token>
Expand description

Parse a single token that is not a subtree and return the token.

The difference between this and one is that this function expects the token to be a TokenTree::Token and does not permit TokenTree::Delimited subtrees.