Struct jni::strings::JNIString [−][src]
pub struct JNIString { /* fields omitted */ }
Wrapper for std::ffi::CString
that also takes care of encoding between
UTF-8 and Java's Modified UTF-8. As with CString
, this implements Deref
to &JNIStr
.
Methods
impl JNIString
[src]
impl JNIString
pub fn borrowed(&self) -> &JNIStr
[src]
pub fn borrowed(&self) -> &JNIStr
Get the borrowed version of the JNIString. Equivalent to
CString::borrowed
.
Methods from Deref<Target = JNIStr>
Trait Implementations
impl<'a, 'b> Desc<'a, JThrowable<'a>> for JNIString
[src]
impl<'a, 'b> Desc<'a, JThrowable<'a>> for JNIString
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
[src]
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
Look up the concrete type from the JVM.
impl Deref for JNIString
[src]
impl Deref for JNIString
type Target = JNIStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl<T> From<T> for JNIString where
T: AsRef<str>,
[src]
impl<T> From<T> for JNIString where
T: AsRef<str>,
impl From<JNIString> for String
[src]
impl From<JNIString> for String
impl Borrow<JNIStr> for JNIString
[src]
impl Borrow<JNIStr> for JNIString