#[repr(transparent)]pub struct JString<'local>(_);
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: jstring) -> Self
pub unsafe fn from_raw(raw: jstring) -> Self
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.