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]
fn borrowed(&self) -> &JNIStr
[src]
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]
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
[src]
Look up the concrete type from the JVM.
impl Deref for JNIString
[src]
type Target = JNIStr
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<T> From<T> for JNIString where
T: AsRef<str>,
[src]
T: AsRef<str>,