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
Get the borrowed version of the JNIString. Equivalent to
CString::borrowed
.
Methods from Deref<Target=JNIStr>
Trait Implementations
impl Deref for JNIString
[src]
type Target = JNIStr
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<T> From<T> for JNIString where T: AsRef<str>
[src]
fn from(other: T) -> Self
Performs the conversion.