Module syntax_ext::format[][src]

🔬 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?

Re-exports

use self::ArgumentType::*;
use self::Position::*;
use fmt_macros as parse;
use syntax::ast;
use syntax::ext::base::*;
use syntax::ext::base;
use syntax::ext::build::AstBuilder;
use syntax::parse::token;
use syntax::ptr::P;
use syntax::symbol::Symbol;
use syntax_pos::Span;
use syntax_pos::DUMMY_SP;
use syntax::tokenstream;
use std::collections::HashMap;
use std::collections::HashSet;
use std::collections::hash_map::Entry;

Structs

Context [
Experimental
]

Enums

ArgumentType [
Experimental
]
Position [
Experimental
]

Functions

expand_format_args [
Experimental
]
expand_preparsed_format_args [
Experimental
]

Take the various parts of format_args!(efmt, args..., name=names...) and construct the appropriate formatting expression.

parse_args [
Experimental
]

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.