Struct rust_icu_unumberformatter::UFormattedNumber[][src]

pub struct UFormattedNumber { /* fields omitted */ }
Expand description

Stores a formatted number result.

These objects are produced UNumberFormatter::format_int, UNumberFormatter::format_double, UNumberFormatter::format_decimal.

Implementations

Obtains the field iterator for the formatted result.

Implements unumf_resultGetAllFieldPositions. Since 0.3.1.

Implements unumf_resultNextFieldPosition. Since 0.3.1. All access is via iterators.

Trait Implementations

Formats the value using the given formatter. Read more

Implements $impl_function_name.

Converts this formatted number into a Rust string.

If you intend to use field position iterators on the result, you have to use TryInto<ustring::UChar> instead, because field position iterators use the fixed encoding of ustring::UChar for positioning.

Implements unumf_resultToString. Since 0.3.1.

The type returned in the event of a conversion error.

Converts this formatted number into a Unicode string.

You want to use this method instead of TryInto<String> when you need to do additional processing on the result, such as extracting fields based on their indexes.

Implements unumf_resultToString. Since 0.3.1.

The type returned in the event of a conversion error.

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

Performs the conversion.

Performs the conversion.

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.