Struct jni::strings::JavaStr [−][src]
pub struct JavaStr<'a: 'b, 'b> { /* fields omitted */ }
Expand description
Reference to a string in the JVM. Holds a pointer to the array
returned by GetStringUTFChars. Calls ReleaseStringUTFChars on Drop.
Can be converted to a &JNIStr
with the same cost as the &CStr.from_ptr
conversion.
Implementations
Build a JavaStr
from an object and a reference to the environment. You
probably want to use JNIEnv::get_string
instead.