[−][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: 'b, 'b: 'c, 'c> From<&'c JavaStr<'a, 'b>> for &'c JNIStr
[src]
impl ToOwned for JNIStr
[src]
type Owned = JNIString
The resulting type after obtaining ownership.
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
impl Deref for JNIStr
[src]
impl Borrow<JNIStr> for JNIString
[src]
Auto Trait Implementations
impl Send for JNIStr
impl Unpin for JNIStr
impl Sync for JNIStr
impl UnwindSafe for JNIStr
impl RefUnwindSafe for JNIStr
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,