pub struct JMethodID<'a> { /* private fields */ }
Expand description
Wrapper around sys::jmethodid
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
jmethodid
.
Implementations§
Source§impl<'a> JMethodID<'a>
impl<'a> JMethodID<'a>
Sourcepub fn into_inner(self) -> *mut _jmethodID
pub fn into_inner(self) -> *mut _jmethodID
Unwrap to the internal jni type.
Trait Implementations§
Source§impl<'a> AdapterTransform<*mut _jmethodID> for JMethodID<'a>
impl<'a> AdapterTransform<*mut _jmethodID> for JMethodID<'a>
Source§impl<'a> AutoDeallocateBuilder<'a, JMethodID<'a>> for MutAutoDeallocateObjectArrayBuilder<jmethodID>
impl<'a> AutoDeallocateBuilder<'a, JMethodID<'a>> for MutAutoDeallocateObjectArrayBuilder<jmethodID>
impl<'a> Copy for JMethodID<'a>
Auto Trait Implementations§
impl<'a> Freeze for JMethodID<'a>
impl<'a> RefUnwindSafe for JMethodID<'a>
impl<'a> !Send for JMethodID<'a>
impl<'a> !Sync for JMethodID<'a>
impl<'a> Unpin for JMethodID<'a>
impl<'a> UnwindSafe for JMethodID<'a>
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