[][src]Struct rust_icu_upluralrules::UPluralRules

pub struct UPluralRules { /* fields omitted */ }

The "plural rules" formatter struct. Create a new instance with UPluralRules::try_new, or UPluralRules::try_new_styled.

Implementations

impl UPluralRules[src]

pub fn try_new(locale: &str) -> Result<UPluralRules, Error>[src]

Implements uplrules_open`.

pub fn try_new_styled(
    locale: &str,
    format_type: UPluralType
) -> Result<UPluralRules, Error>
[src]

Implements uplrules_openForType.

pub fn select_ustring(&self, number: f64) -> Result<UChar, Error>[src]

Implements uplrules_select.

pub fn select(&self, number: f64) -> Result<String, Error>[src]

Implements uplrules_select.

pub fn get_keywords(&self) -> Result<Enumeration, Error>[src]

Implements uplrules_getKeywords

Trait Implementations

impl Debug for UPluralRules[src]

impl Drop for UPluralRules[src]

fn drop(&mut self)[src]

Implements uplrules_close`.

Auto Trait Implementations

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.