pub struct UNumberFormatter { /* private fields */ }
Expand description

The struct for modern number formatting (akin to ECMA402).

Use UNumberFormatter::try_new to create a new instance of this type.

Implementations

Makes a new UNumberFormatter, using ICU types.

To make a new formatter if you have Rust types only, see UNumberFormatter::try_new. See that function also for the description of skeleton syntax.

Returns the error description if an error is found.

Implements unumf_openForSkeletonAndLocaleWithError. Since 0.3.1. Implements unumf_openForSkeletonAndLocale. Since 0.3.1.

Similar to UNumberFormatter::try_new_ustring but uses Rust types.

The skeleton is a string that describes the formatting options. See skeleton syntax for detailed documentation.

Implements unumf_openForSkeletonAndLocaleWithError. Since 0.3.1. Implements unumf_openForSkeletonAndLocale. Since 0.3.1.

Implements $impl_function_name. Since 0.3.1.

Implements $impl_function_name. Since 0.3.1.

Implements unumf_formatDecimal. Since 0.3.1.

Trait Implementations

Formats the value using the given formatter. Read more

Implements $impl_function_name.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.