Struct jni::strings::JavaStr[][src]

pub struct JavaStr<'a> { /* fields omitted */ }

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.

Methods

impl<'a> JavaStr<'a>
[src]

Build a JavaStr from an object and a reference to the environment. You probably want to use JNIEnv::get_string instead.

Extract the raw C string pointer from the JavaStr. This will be encoded using the JVM internal CESU-8-style.

Methods from Deref<Target = JNIStr>

Trait Implementations

impl<'a> Deref for JavaStr<'a>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a> From<&'a JavaStr<'a>> for &'a JNIStr
[src]

Performs the conversion.

impl<'a> From<&'a JavaStr<'a>> for Cow<'a, str>
[src]

Performs the conversion.

impl<'a> From<JavaStr<'a>> for String
[src]

Performs the conversion.

impl<'a> Drop for JavaStr<'a>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a> !Send for JavaStr<'a>

impl<'a> !Sync for JavaStr<'a>