Struct icu::decimal::FixedDecimalFormat [−][src]
pub struct FixedDecimalFormat<'d> { /* fields omitted */ }
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
impl<'d> FixedDecimalFormat<'d>
[src]
impl<'d> FixedDecimalFormat<'d>
[src]pub fn try_new<T, D>(
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<FixedDecimalFormat<'d>, Error> where
T: Into<Locale>,
D: DataProvider<'d, DecimalSymbolsV1> + ?Sized,
[src]
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<FixedDecimalFormat<'d>, Error> where
T: Into<Locale>,
D: DataProvider<'d, DecimalSymbolsV1> + ?Sized,
Creates a new FixedDecimalFormat
from locale data and an options bag.
pub fn format(&'l self, value: &'l FixedDecimal) -> FormattedFixedDecimal<'l>
[src]
Formats a [FixedDecimal
], returning a FormattedFixedDecimal
.
Auto Trait Implementations
impl<'d> RefUnwindSafe for FixedDecimalFormat<'d>
impl<'d> RefUnwindSafe for FixedDecimalFormat<'d>
impl<'d> Send for FixedDecimalFormat<'d>
impl<'d> Send for FixedDecimalFormat<'d>
impl<'d> Sync for FixedDecimalFormat<'d>
impl<'d> Sync for FixedDecimalFormat<'d>
impl<'d> Unpin for FixedDecimalFormat<'d>
impl<'d> Unpin for FixedDecimalFormat<'d>
impl<'d> UnwindSafe for FixedDecimalFormat<'d>
impl<'d> UnwindSafe for FixedDecimalFormat<'d>