rustc_expand::mbe

Module metavar_expr

Source

Enumsยง

MetaVarExpr ๐Ÿ”’
A meta-variable expression, for expansions based on properties of meta-variables.
MetaVarExprConcatElem ๐Ÿ”’
Indicates what is placed in a concat parameter. For example, literals (${concat("foo", "bar")}) or adhoc identifiers (${concat(foo, bar)}).

Constantsยง

RAW_IDENT_ERR ๐Ÿ”’
UNSUPPORTED_CONCAT_ELEM_ERR ๐Ÿ”’

Functionsยง

check_trailing_token ๐Ÿ”’
eat_dollar ๐Ÿ”’
Expects that the next item is a dollar sign.
parse_count ๐Ÿ”’
Parse a meta-variable count expression: count(ident[, depth])
parse_depth ๐Ÿ”’
Parses the depth used by index(depth) and len(depth).
parse_ident ๐Ÿ”’
Parses an generic ident
parse_ident_from_token ๐Ÿ”’
parse_token ๐Ÿ”’
try_eat_comma ๐Ÿ”’
Tries to move the iterator forward returning true if there is a comma. If not, then the iterator is not modified and the result is false.
try_eat_dollar ๐Ÿ”’
Tries to move the iterator forward returning true if there is a dollar sign. If not, then the iterator is not modified and the result is false.