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.

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

The resulting type after dereferencing.

Dereferences the value.

Executes the destructor for this type. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.