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

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

public final class MessagePattern

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

Methods

impl MessagePattern

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

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

MessagePattern

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

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

MessagePattern

Required features: "java-lang-String"

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

parse

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

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

parseChoiceStyle

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

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

parsePluralStyle

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

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

parseSelectStyle

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

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

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

clearPatternAndSetApostropheMode

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

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 hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

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

getApostropheMode

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

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

getPatternString

Required features: "java-lang-String"

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

pub fn hasNumberedArguments<'env>(
    &'env self
) -> Result<bool, 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"

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

validateArgumentName

Required features: "java-lang-String"

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

autoQuoteApostropheDeep

Required features: "java-lang-String"

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

pub fn getPart<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, MessagePattern_Part>>, Local<'env, Throwable>>
[src]

getPart

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

pub fn getPartType<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, MessagePattern_Part_Type>>, Local<'env, Throwable>>
[src]

getPartType

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

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

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

getSubstring

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

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

partSubstringMatches

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

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

getNumericValue

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

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

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

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

clone

Required features: "java-lang-Object"

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

cloneAsThawed

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

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

freeze

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

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

pub const ARG_NAME_NOT_NUMBER: i32[src]

public static final ARG_NAME_NOT_NUMBER

pub const ARG_NAME_NOT_VALID: i32[src]

public static final ARG_NAME_NOT_VALID

pub const NO_NUMERIC_VALUE: f64[src]

public static final NO_NUMERIC_VALUE

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 MessagePattern

impl AsRef<Cloneable> for MessagePattern

impl AsRef<Freezable> for MessagePattern

impl AsValidJObjectAndEnv for MessagePattern

impl Deref for MessagePattern

type Target = Object

The resulting type after dereferencing.

impl JniType for MessagePattern

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.