[−][src]Struct jni::strings::JNIString
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]
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
[src]
impl<T> From<T> for JNIString where
T: AsRef<str>,
[src]
T: AsRef<str>,
impl From<JNIString> for String
[src]
impl Deref for JNIString
[src]
impl Borrow<JNIStr> for JNIString
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,