pub fn format(args: &Arguments) -> ~str
The format function takes a precompiled format string and a list of arguments, to return the resulting formatted string.
format_args!
macro.
Because this structure can only be safely generated at
compile-time, this function is safe.use std::fmt;
let s = format_args!(fmt::format, "Hello, {}!", "world");
assert_eq!(s, "Hello, world!");
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
).