pub struct ArgumentSpec<'a> { /* fields omitted */ }
The format specification for a single argument in the format string, created by
Format::iter_args
.
The argument spec may borrow data from the format string, e.g. when referring to named arguments
in the argument list.
Creates a new argument specification with default values.
The start
and end
parameters denote the exclusive range of this specification in the
format string. E.g. for a format string "{}"
, the range is [0, 2).
Always print a sign characters in front of numbers.
Activate sign-aware zero padding.
Set the fill character. Defaults to ' '
(a space).
Set alignment within the width of this format. Defaults to Alignment::Right
.
Set a minimum width for this argument. Defaults to None
.
If the formatted argument is smaller than the threshold, the argument is padded with the
fill character. If the argument is numeric and with_zeros
is specified, it is padded with
zeros instead.
Set the precision for floating point values. Defaults to arbitrary precision.
The start index of this specification in the format string.
The end index of this specification in the format string.
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more