Function syntax_ext::format::parse_args [−][src]
fn parse_args(
ecx: &mut ExtCtxt,
sp: Span,
tts: &[TokenTree]
) -> Option<(P<Expr>, Vec<P<Expr>>, HashMap<String, usize>)>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Parses the arguments from the given list of tokens, returning None if there's a parse error so we can continue parsing other format! expressions.
If parsing succeeds, the return value is:
Some((fmtstr, parsed arguments, index map for named arguments))