Module rustc_expand::mbe::metavar_expr
source ยท Enumsยง
- MetaVarExpr ๐A meta-variable expression, for expansions based on properties of meta-variables.
- Indicates what is placed in a
concat
parameter. For example, literals (${concat("foo", "bar")}
) or adhoc identifiers (${concat(foo, bar)}
).
Constantsยง
- RAW_IDENT_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_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 isfalse
. - 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 isfalse
.