Module rustc_expand::mbe::metavar_expr
source ยท Enumsยง
- Meta
VarExpr ๐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_
IDEN ๐T_ ERR
Functionsยง
- check_
trailing_ ๐token - eat_
dollar ๐Expects that the next item is a dollar sign. - parse_
count ๐Parse a meta-variablecount
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 returningtrue
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 returningtrue
if there is a dollar sign. If not, then the iterator is not modified and the result isfalse
.