[]Struct jni_android_sys::android::icu::text::PluralFormat

#[repr(transparent)]
pub struct PluralFormat(_);

public class PluralFormat

Required feature: "android-icu-text-PluralFormat"

Methods

impl PluralFormat

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

pub fn new_ULocale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-util-ULocale"

pub fn new_Locale<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "java-util-Locale"

pub fn new_PluralRules<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env PluralRules>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules"

pub fn new_ULocale_PluralRules<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: impl Into<Option<&'env PluralRules>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules", "android-icu-util-ULocale"

pub fn new_Locale_PluralRules<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>,
    arg1: impl Into<Option<&'env PluralRules>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules", "java-util-Locale"

pub fn new_ULocale_PluralType<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: impl Into<Option<&'env PluralRules_PluralType>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules_PluralType", "android-icu-util-ULocale"

pub fn new_Locale_PluralType<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Locale>>,
    arg1: impl Into<Option<&'env PluralRules_PluralType>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules_PluralType", "java-util-Locale"

pub fn new_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "java-lang-String"

pub fn new_ULocale_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-util-ULocale", "java-lang-String"

pub fn new_PluralRules_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env PluralRules>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules", "java-lang-String"

pub fn new_ULocale_PluralRules_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: impl Into<Option<&'env PluralRules>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules", "android-icu-util-ULocale", "java-lang-String"

pub fn new_ULocale_PluralType_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ULocale>>,
    arg1: impl Into<Option<&'env PluralRules_PluralType>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, PluralFormat>, Local<'env, Throwable>>
[src]

PluralFormat

Required features: "android-icu-text-PluralRules_PluralType", "android-icu-util-ULocale", "java-lang-String"

pub fn applyPattern<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

applyPattern

Required features: "java-lang-String"

pub fn toPattern<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toPattern

Required features: "java-lang-String"

pub fn format_double<'env>(
    &'env self,
    arg0: f64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-String"

pub fn format_Object_StringBuffer_FieldPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: impl Into<Option<&'env StringBuffer>>,
    arg2: impl Into<Option<&'env FieldPosition>>
) -> Result<Option<Local<'env, StringBuffer>>, Local<'env, Throwable>>
[src]

format

Required features: "java-lang-Object", "java-lang-StringBuffer", "java-text-FieldPosition"

pub fn parse<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Number>>, Local<'env, Throwable>>
[src]

parse

Required features: "java-lang-Number", "java-lang-String", "java-text-ParsePosition"

pub fn parseObject<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ParsePosition>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

parseObject

Required features: "java-lang-Object", "java-lang-String", "java-text-ParsePosition"

pub fn setNumberFormat<'env>(
    &'env self,
    arg0: impl Into<Option<&'env NumberFormat>>
) -> Result<(), Local<'env, Throwable>>
[src]

setNumberFormat

Required features: "android-icu-text-NumberFormat"

pub fn equals_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn equals_PluralFormat<'env>(
    &'env self,
    arg0: impl Into<Option<&'env PluralFormat>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "android-icu-text-PluralFormat"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

Methods from Deref<Target = UFormat>

Trait Implementations

impl AsJValue for PluralFormat

impl AsValidJObjectAndEnv for PluralFormat

impl Deref for PluralFormat

type Target = UFormat

The resulting type after dereferencing.

impl JniType for PluralFormat

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.