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

Implementations

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.

Safety

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

Trait Implementations

impl Borrow<JNIStr> for JNIString[src]

impl Deref for JNIStr[src]

type Target = CStr

The resulting type after dereferencing.

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.

Auto Trait Implementations

impl RefUnwindSafe for JNIStr

impl Send for JNIStr

impl Sync for JNIStr

impl Unpin for JNIStr

impl UnwindSafe for JNIStr

Blanket Implementations

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.