rustc_expand::mbe

Module metavar_expr

Source

Enums§

  • 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 a meta-variable count expression: count(ident[, depth])
  • Parses the depth used by index(depth) and len(depth).
  • Parses an generic ident
  • 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.
  • 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.