Expand description
Tools to work with expressions present in format string literals for the format_args!
family of macros.
Primarily meant for assists and completions.
Enums§
- Enum for representing extracted format string args. Can either be extracted expressions (which includes identifiers), or placeholders
{}
.
Functions§
- Parser for a format-like string. It is more allowing in terms of string contents, as we expect variable placeholders to be filled with expressions.
- Add placeholders like
$1
and$2
in place ofArg::Placeholder
, and unwraps theArg::Ident
andArg::Expr
enums.