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: Into<Locale>, D: DataProvider<'d, DecimalSymbolsV1> + ?Sized>(
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<Self, FixedDecimalFormatError>
[src]
locale: T,
data_provider: &D,
options: FixedDecimalFormatOptions
) -> Result<Self, FixedDecimalFormatError>
Creates a new FixedDecimalFormat
from locale data and an options bag.
pub fn format<'l>(
&'l self,
value: &'l FixedDecimal
) -> FormattedFixedDecimal<'l>
[src]
&'l self,
value: &'l FixedDecimal
) -> FormattedFixedDecimal<'l>
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>