[−][src]Struct jni::strings::JNIStr
Wrapper for std::ffi::CStr
that also takes care of encoding between
UTF-8 and Java's Modified UTF-8.
Methods
impl JNIStr
[src]
pub unsafe fn from_ptr<'a>(ptr: *const c_char) -> &'a JNIStr
[src]
Construct a reference to a JNIStr
from a pointer. Equivalent to
CStr::from_ptr
.
Trait Implementations
impl<'a> From<&'a JNIStr> for Cow<'a, str>
[src]
impl<'a> From<&'a JavaStr<'a>> for &'a JNIStr
[src]
impl ToOwned for JNIStr
[src]
type Owned = JNIString
fn to_owned(&self) -> JNIString
[src]
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more