Struct jni::strings::JNIStr[][src]

pub struct JNIStr { /* fields omitted */ }
Expand description

Wrapper for std::ffi::CStr that also takes care of encoding between UTF-8 and Java’s Modified UTF-8.

Implementations

Construct a reference to a JNIStr from a pointer. Equivalent to CStr::from_ptr.

Safety

Expects a valid pointer to a null-terminated C string and does not perform any lifetime checks for the resulting value.

Trait Implementations

Immutably borrows from an owned value. Read more

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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