[][src]Struct jni::strings::JNIString

pub struct JNIString { /* fields omitted */ }

Wrapper for std::ffi::CString that also takes care of encoding between UTF-8 and Java's Modified UTF-8. As with CString, this implements Deref to &JNIStr.

Methods

impl JNIString[src]

pub fn borrowed(&self) -> &JNIStr[src]

Get the borrowed version of the JNIString. Equivalent to CString::borrowed.

Methods from Deref<Target = JNIStr>

Trait Implementations

impl<'a, 'b> Desc<'a, JThrowable<'a>> for JNIString[src]

impl<T> From<T> for JNIString where
    T: AsRef<str>, 
[src]

impl From<JNIString> for String[src]

impl Deref for JNIString[src]

type Target = JNIStr

The resulting type after dereferencing.

impl Borrow<JNIStr> for JNIString[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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]