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.
Construct a reference to a JNIStr
from a pointer. Equivalent to CStr::from_ptr
.
Expects a valid pointer to a null-terminated C string and does not perform any lifetime
checks for the resulting value.
Immutably borrows from an owned value. Read more
The resulting type after dereferencing.
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more