#[repr(transparent)]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
sourceimpl<'a> JMethodID<'a>
impl<'a> JMethodID<'a>
sourcepub fn into_inner(self) -> jmethodID
pub fn into_inner(self) -> jmethodID
Unwrap to the internal jni type.
Trait Implementations
sourceimpl<'a, 'c, T, U, V> Desc<'a, JMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a, 'c, T, U, V> Desc<'a, JMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
sourceimpl<'a, 'c, T, Signature> Desc<'a, JMethodID<'a>> for (T, Signature) where
T: Desc<'a, JClass<'c>>,
Signature: Into<JNIString>,
impl<'a, 'c, T, Signature> Desc<'a, JMethodID<'a>> for (T, Signature) where
T: Desc<'a, JClass<'c>>,
Signature: Into<JNIString>,
sourceimpl<'a> From<*mut _jmethodID> for JMethodID<'a>
impl<'a> From<*mut _jmethodID> for JMethodID<'a>
impl<'a> Copy for JMethodID<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more