[−]Struct jni_android_sys::java::lang::String
public final class String
Required feature: "java-lang-String"
Methods
impl String
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_char_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_char_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_int_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env IntArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_byte_array_int_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_byte_array_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_byte_array_int_int_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_byte_array_int_int_Charset<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Charset>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Charset>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset"
pub fn new_byte_array_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_byte_array_Charset<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: impl Into<Option<&'env Charset>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset"
pub fn new_byte_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>,
arg1: i32,
arg2: i32
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_byte_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ByteArray>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
pub fn new_StringBuffer<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env StringBuffer>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env StringBuffer>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-lang-StringBuffer"
pub fn new_StringBuilder<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env StringBuilder>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env StringBuilder>>
) -> Result<Local<'env, String>, Local<'env, Throwable>>
Required features: "java-lang-StringBuilder"
pub fn length<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn isEmpty<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn charAt<'env>(
&'env self,
arg0: i32
) -> Result<jchar, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<jchar, Local<'env, Throwable>>
pub fn codePointAt<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn codePointBefore<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn codePointCount<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn offsetByCodePoints<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getChars<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env CharArray>>,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env CharArray>>,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getBytes_int_int_byte_array_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env ByteArray>>,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: impl Into<Option<&'env ByteArray>>,
arg3: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getBytes_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getBytes_Charset<'env>(
&'env self,
arg0: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Charset>>
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
Required features: "java-nio-charset-Charset"
pub fn getBytes<'env>(
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ByteArray>>, Local<'env, Throwable>>
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 contentEquals_StringBuffer<'env>(
&'env self,
arg0: impl Into<Option<&'env StringBuffer>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env StringBuffer>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-StringBuffer"
pub fn contentEquals_CharSequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn equalsIgnoreCase<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn compareTo_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn compareToIgnoreCase<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn regionMatches_int_String_int_int<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env String>>,
arg2: i32,
arg3: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn regionMatches_boolean_int_String_int_int<'env>(
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env String>>,
arg3: i32,
arg4: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool,
arg1: i32,
arg2: impl Into<Option<&'env String>>,
arg3: i32,
arg4: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn startsWith_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn startsWith_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn endsWith<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn indexOf_int<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn indexOf_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn lastIndexOf_int<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn lastIndexOf_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn indexOf_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn indexOf_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn lastIndexOf_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn lastIndexOf_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn substring_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn substring_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn subSequence<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn concat<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn replace_char_char<'env>(
&'env self,
arg0: jchar,
arg1: jchar
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: jchar,
arg1: jchar
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn matches<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn contains<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn replaceFirst<'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 replaceAll<'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 replace_CharSequence_CharSequence<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env CharSequence>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence", "java-lang-String"
pub fn split_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn split_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn join_CharSequence_CharSequence_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env ObjectArray<CharSequence, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env ObjectArray<CharSequence, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence", "java-lang-String"
pub fn join_CharSequence_Iterable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env Iterable>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env Iterable>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence", "java-lang-Iterable", "java-lang-String"
pub fn toLowerCase_Locale<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-Locale"
pub fn toLowerCase<'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 toUpperCase_Locale<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-Locale"
pub fn toUpperCase<'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 trim<'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 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 toCharArray<'env>(
&'env self
) -> Result<Option<Local<'env, CharArray>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, CharArray>>, Local<'env, Throwable>>
pub fn format_String_Object_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn format_Locale_String_Object_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Locale>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env ObjectArray<Object, Throwable>>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String", "java-util-Locale"
pub fn valueOf_Object<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-String"
pub fn valueOf_char_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_char_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn copyValueOf_char_array_int_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn copyValueOf_char_array<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env CharArray>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_boolean<'env>(
__jni_env: &'env Env,
arg0: bool
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: bool
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_char<'env>(
__jni_env: &'env Env,
arg0: jchar
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: jchar
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_long<'env>(
__jni_env: &'env Env,
arg0: i64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_float<'env>(
__jni_env: &'env Env,
arg0: f32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: f32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn valueOf_double<'env>(
__jni_env: &'env Env,
arg0: f64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: f64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn intern<'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 CASE_INSENSITIVE_ORDER<'env>(
env: &'env Env
) -> Option<Local<'env, Comparator>>
[src]
env: &'env Env
) -> Option<Local<'env, Comparator>>
get public static final CASE_INSENSITIVE_ORDER
Required feature: "java-util-Comparator"
impl String
[src]
pub fn from_env_str<'env, S: AsRef<str>>(
env: &'env Env,
string: S
) -> Local<'env, Self>
[src]
env: &'env Env,
string: S
) -> Local<'env, Self>
Create new local string from an Env + AsRef
pub fn to_string(&self) -> Result<String, DecodeUtf16Error>
[src]
Returns a new Ok(String), or an Err(DecodeUtf16Error) if if it contained any invalid UTF16.
pub fn to_string_lossy(&self) -> String
[src]
Returns a new String with any invalid UTF16 characters replaced with REPLACEMENT_CHARACTERs ('\u{FFFD}'
.)
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 String
impl AsRef<CharSequence> for String
fn as_ref(&self) -> &CharSequence
impl AsRef<Comparable> for String
fn as_ref(&self) -> &Comparable
impl AsRef<Serializable> for String
fn as_ref(&self) -> &Serializable
impl AsValidJObjectAndEnv for String
impl Debug for String
[src]
impl Deref for String
impl JniType for String
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for String
impl !Send for String
impl !Sync for String
impl Unpin for String
impl UnwindSafe for String
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>,