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

#[repr(transparent)]
pub struct 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]

getInstance

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]

getInstance

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]

getInstance

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]

getInstance

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]

getInstance

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]

getInstance

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]

format

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]

formatNumeric

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]

format

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]

format

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]

combineDateAndTime

Required features: "java-lang-String"

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

getNumberFormat

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

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

getCapitalizationContext

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

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

getFormatStyle

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]

getClass

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]

equals

Required features: "java-lang-Object"

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

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for RelativeDateTimeFormatter

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.