Struct jni::objects::JStaticMethodID
source · [−]#[repr(transparent)]pub struct JStaticMethodID<'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
. This represents static methods only since they require a
different set of JNI signatures.
Implementations
sourceimpl<'a> JStaticMethodID<'a>
impl<'a> JStaticMethodID<'a>
sourcepub fn into_inner(self) -> jmethodID
pub fn into_inner(self) -> jmethodID
Unwrap to the internal jni type.
Trait Implementations
sourceimpl<'a> Clone for JStaticMethodID<'a>
impl<'a> Clone for JStaticMethodID<'a>
sourcefn clone(&self) -> JStaticMethodID<'a>
fn clone(&self) -> JStaticMethodID<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, 'c, T, U, V> Desc<'a, JStaticMethodID<'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, JStaticMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
sourcefn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticMethodID<'a>>
fn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticMethodID<'a>>
Look up the concrete type from the JVM.
sourceimpl<'a> From<*mut _jmethodID> for JStaticMethodID<'a>
impl<'a> From<*mut _jmethodID> for JStaticMethodID<'a>
impl<'a> Copy for JStaticMethodID<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for JStaticMethodID<'a>
impl<'a> !Send for JStaticMethodID<'a>
impl<'a> !Sync for JStaticMethodID<'a>
impl<'a> Unpin for JStaticMethodID<'a>
impl<'a> UnwindSafe for JStaticMethodID<'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