Struct core::fmt::ArgumentV1
[−]
[src]
pub struct ArgumentV1<'a> { value: &'a Void, formatter: fn(&Void, &mut Formatter) -> Result, }
Unstable (
fmt_internals
): internal to format_args!
This struct represents the generic "argument" which is taken by the Xprintf family of functions. It contains a function to format the given value. At compile time it is ensured that the function and the value have the correct types, and then this struct is used to canonicalize arguments to one type.
Fields
value | Unstable ( fmt_internals ): internal to format_args! |
formatter | Unstable ( fmt_internals ): internal to format_args! |
Methods
impl<'a> ArgumentV1<'a>
fn show_usize(x: &usize, f: &mut Formatter) -> Result
fn new<'b, T>(x: &'b T, f: fn(&T, &mut Formatter) -> Result) -> ArgumentV1<'b>
Unstable (
fmt_internals
): internal to format_args!
fn from_usize(x: &usize) -> ArgumentV1
Unstable (
fmt_internals
): internal to format_args!