format_values
function · ferroui-base · v0.5.0
fn format_values(format_string: &str, values: &[Option<crate::BoxedValue>]) -> Result<String, FormatError>
Replaces the format items of format with the text of the matching
untyped values.
Nullable (Option<T>) values are unwrapped first. Integers, floating
point numbers, booleans, characters and strings are formatted as the
matching FormatArg; every other value is formatted as its display form
(ValueTypes::to_display_string) and ignores the format string of the
item. A Duration is formatted as the time span
(FormatArg::TimeSpan) of the same value.
Numbers, decimals and dates are formatted with the conventions of the
current culture (string.Format without a provider); see
format_values_with for another culture.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.