Module string

Module string 

Source
Expand description

module for the SharedString and related things

Structs§

SharedString
A string type used by the Slint run-time.

Traits§

ToSharedString
A trait for converting a value to a SharedString.

Functions§

format
Same as std::fmt::format(), but return a SharedString instead
shared_string_from_number
Convert a f62 to a SharedString
shared_string_from_number_fixed
Convert a f64 to a SharedString with a fixed number of digits after the decimal point
shared_string_from_number_precision
Convert a f64 to a SharedString following a similar logic as JavaScript’s Number.toPrecision()