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:

  1. Rendering in the local numbering system
  2. Locale-sensitive grouping separator positions
  3. 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]

pub fn try_new<T: Into<Locale>, D: DataProvider<'d, DecimalSymbolsV1> + ?Sized>(
    locale: T,
    data_provider: &D,
    options: FixedDecimalFormatOptions
) -> Result<Self, FixedDecimalFormatError>
[src]

Creates a new FixedDecimalFormat from locale data and an options bag.

pub fn format<'l>(
    &'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> Send for FixedDecimalFormat<'d>

impl<'d> Sync for FixedDecimalFormat<'d>

impl<'d> Unpin for FixedDecimalFormat<'d>

impl<'d> UnwindSafe for FixedDecimalFormat<'d>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.