pub struct Arguments<'self> { priv fmt: &'self [Piece<'self>], priv args: &'self [Argument<'self>], }
This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done so, so no constructors are given and the fields are private to prevent modification.
The format_args!
macro will safely create an instance of this structure
and pass it to a user-supplied function. The macro validates the format
string at compile-time so usage of the write
and format
functions can
be safely performed.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).