[−]Struct jni_android_sys::android::icu::text::RelativeDateTimeFormatter
public final class RelativeDateTimeFormatter
Required feature: "android-icu-text-RelativeDateTimeFormatter"
Methods
impl RelativeDateTimeFormatter
pub fn getInstance<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter"
pub fn getInstance_ULocale<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter", "android-icu-util-ULocale"
pub fn getInstance_Locale<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter", "java-util-Locale"
pub fn getInstance_ULocale_NumberFormat<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>,
arg1: impl Into<Option<&'env NumberFormat>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>,
arg1: impl Into<Option<&'env NumberFormat>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-NumberFormat", "android-icu-text-RelativeDateTimeFormatter", "android-icu-util-ULocale"
pub fn getInstance_ULocale_NumberFormat_Style_DisplayContext<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>,
arg1: impl Into<Option<&'env NumberFormat>>,
arg2: impl Into<Option<&'env RelativeDateTimeFormatter_Style>>,
arg3: impl Into<Option<&'env DisplayContext>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ULocale>>,
arg1: impl Into<Option<&'env NumberFormat>>,
arg2: impl Into<Option<&'env RelativeDateTimeFormatter_Style>>,
arg3: impl Into<Option<&'env DisplayContext>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-DisplayContext", "android-icu-text-NumberFormat", "android-icu-text-RelativeDateTimeFormatter", "android-icu-text-RelativeDateTimeFormatter_Style", "android-icu-util-ULocale"
pub fn getInstance_Locale_NumberFormat<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>,
arg1: impl Into<Option<&'env NumberFormat>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>,
arg1: impl Into<Option<&'env NumberFormat>>
) -> Result<Option<Local<'env, RelativeDateTimeFormatter>>, Local<'env, Throwable>>
Required features: "android-icu-text-NumberFormat", "android-icu-text-RelativeDateTimeFormatter", "java-util-Locale"
pub fn format_double_Direction_RelativeUnit<'env>(
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_Direction>>,
arg2: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_Direction>>,
arg2: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter_Direction", "android-icu-text-RelativeDateTimeFormatter_RelativeUnit", "java-lang-String"
pub fn formatNumeric<'env>(
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeDateTimeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeDateTimeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter_RelativeDateTimeUnit", "java-lang-String"
pub fn format_Direction_AbsoluteUnit<'env>(
&'env self,
arg0: impl Into<Option<&'env RelativeDateTimeFormatter_Direction>>,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_AbsoluteUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RelativeDateTimeFormatter_Direction>>,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_AbsoluteUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter_AbsoluteUnit", "android-icu-text-RelativeDateTimeFormatter_Direction", "java-lang-String"
pub fn format_double_RelativeDateTimeUnit<'env>(
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeDateTimeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: f64,
arg1: impl Into<Option<&'env RelativeDateTimeFormatter_RelativeDateTimeUnit>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter_RelativeDateTimeUnit", "java-lang-String"
pub fn combineDateAndTime<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getNumberFormat<'env>(
&'env self
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, NumberFormat>>, Local<'env, Throwable>>
Required features: "android-icu-text-NumberFormat"
pub fn getCapitalizationContext<'env>(
&'env self
) -> Result<Option<Local<'env, DisplayContext>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, DisplayContext>>, Local<'env, Throwable>>
Required features: "android-icu-text-DisplayContext"
pub fn getFormatStyle<'env>(
&'env self
) -> Result<Option<Local<'env, RelativeDateTimeFormatter_Style>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, RelativeDateTimeFormatter_Style>>, Local<'env, Throwable>>
Required features: "android-icu-text-RelativeDateTimeFormatter_Style"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for RelativeDateTimeFormatter
impl AsValidJObjectAndEnv for RelativeDateTimeFormatter
impl Deref for RelativeDateTimeFormatter
impl JniType for RelativeDateTimeFormatter
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for RelativeDateTimeFormatter
impl !Send for RelativeDateTimeFormatter
impl !Sync for RelativeDateTimeFormatter
impl Unpin for RelativeDateTimeFormatter
impl UnwindSafe for RelativeDateTimeFormatter
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,
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.
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>,