[−][src]Struct rust_icu_upluralrules::UPluralRules
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]
locale: &str,
format_type: UPluralType
) -> Result<UPluralRules, Error>
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]
Auto Trait Implementations
impl RefUnwindSafe for UPluralRules
impl !Send for UPluralRules
impl !Sync for UPluralRules
impl Unpin for UPluralRules
impl UnwindSafe for UPluralRules
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,