Module rustc_expand::mbe::quoted
source · [−]Constants
Functions
Takes a token and returns
Some(KleeneOp)
if the token is +
*
or ?
. Otherwise, return
None
.Asks for the
macro_metavar_expr
feature if it is not already declaredparse 🔒
Takes a
tokenstream::TokenStream
and returns a Vec<self::TokenTree>
. Specifically, this
takes a generic TokenStream
, such as is used in the rest of the compiler, and returns a
collection of TokenTree
for use in parsing a macro.Parse the next token tree of the input looking for a KleeneOp. Returns
Attempt to parse a single Kleene star, possibly with a separator.
Takes a
tokenstream::TokenTree
and returns a self::TokenTree
. Specifically, this takes a
generic TokenTree
, such as is used in the rest of the compiler, and returns a TokenTree
for use in parsing a macro.