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ยง

Functionsยง

  • 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 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.