FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    format_decimal_composite

    function · ferroui-base · v0.5.0

    fn format_decimal_composite(format: &str, info: &super::NumberFormatInfo, value: Option<super::Decimal>) -> Result<String, crate::data::converters::composite_format::FormatError>
    

    Replaces the format items of a composite format string ({0}, {0,8}, {0:N2}; {{ and }} are braces) with the text of value, the only argument. A missing value formats as empty text.

    View source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.