Struct icu_decimal::FixedDecimalFormat [−][src]
pub struct FixedDecimalFormat<'data> { /* fields omitted */ }
Expand description
A formatter for FixedDecimal
, rendering decimal digits in an i18n-friendly way.
FixedDecimalFormat
supports:
- Rendering in the local numbering system
- Locale-sensitive grouping separator positions
- Locale-sensitive plus and minus signs
Read more about the options in the options
module.
See the crate-level documentation for examples.
Implementations
pub fn try_new<T: Into<Locale>, D: DataProvider<'data, DecimalSymbolsV1Marker> + ?Sized>(
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<Self, FixedDecimalFormatError>
pub fn try_new<T: Into<Locale>, D: DataProvider<'data, DecimalSymbolsV1Marker> + ?Sized>(
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<Self, FixedDecimalFormatError>
Creates a new FixedDecimalFormat
from locale data and an options bag.
Formats a FixedDecimal
, returning a FormattedFixedDecimal
.
Auto Trait Implementations
impl<'data> !RefUnwindSafe for FixedDecimalFormat<'data>
impl<'data> !Send for FixedDecimalFormat<'data>
impl<'data> !Sync for FixedDecimalFormat<'data>
impl<'data> Unpin for FixedDecimalFormat<'data>
impl<'data> UnwindSafe for FixedDecimalFormat<'data>
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.