FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Labelers

    struct · ferroui-livecharts · v0.5.0

    struct Labelers
    

    The labelers of the source (Labelers).

    View source

    Members

    six_representative_digits

    fn six_representative_digits(value: f64) -> String
    

    SixRepresentativeDigits (the source's default labeler, Log10_6): up to seven decimals, a value of a million or more in millions (M), a value of a millionth or less in millionths (µ).

    Source

    format_currency

    fn format_currency(value: f64, thousands: &str, decimals: &str, symbol: &str) -> String
    

    FormatCurrency: the value in quadrillions (Q), trillions (T), billions (B) or millions (M) from a million on, with the symbol, digit groups of three and up to two decimals ({symbol}#,###,##0.## {unit}).

    Source

    currency

    fn currency(value: f64) -> String
    

    Currency: format_currency with ,, . and the currency symbol of the current culture.

    Source

    build_named_labeler

    fn build_named_labeler(labels: Vec<String>) -> Labeler
    

    BuildNamedLabeler: the label at the index of a value (its integer part); an index out of range has an empty label.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

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