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

pub struct JNIStr { /* fields omitted */ }

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 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]

type Target = CStr

The resulting type after dereferencing.

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]