Struct jni::objects::JObject [−][src]
#[repr(transparent)]pub struct JObject<'a> { /* fields omitted */ }
Expand description
Wrapper around sys::jobject
that adds a lifetime. This prevents it from
outliving the context in which it was acquired and getting GC’d out from
under us. It matches C’s representation of the raw pointer, so it can be
used in any of the extern function argument positions that would take a
jobject
.
Most other types in the objects
module deref to this, as they do in the C
representation.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
This conversion assumes that the JObject
is a pointer to a class object.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<'a> RefUnwindSafe for JObject<'a>
impl<'a> UnwindSafe for JObject<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more