pub struct JString<'local>(/* private fields */);
Expand description
Lifetime’d representation of a jstring
. Just a JObject
wrapped in a new
class.
Implementations§
Source§impl<'local> JString<'local>
impl<'local> JString<'local>
Sourcepub unsafe fn from_raw(raw: *mut _jobject) -> JString<'local>
pub unsafe fn from_raw(raw: *mut _jobject) -> JString<'local>
Creates a JString
that wraps the given raw
jstring
§Safety
raw
may be a null pointer. If raw
is not a null pointer, then:
raw
must be a valid raw JNI local reference.- There must not be any other
JObject
representing the same local reference. - The lifetime
'local
must not outlive the local reference frame that the local reference was created in.
Trait Implementations§
Auto Trait Implementations§
impl<'local> Freeze for JString<'local>
impl<'local> RefUnwindSafe for JString<'local>
impl<'local> Send for JString<'local>where
'local: 'static,
impl<'local> Sync for JString<'local>where
'local: 'static,
impl<'local> Unpin for JString<'local>
impl<'local> UnwindSafe for JString<'local>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more