Struct jni::objects::JStaticFieldID
source · [−]#[repr(transparent)]pub struct JStaticFieldID<'a> { /* private fields */ }
Expand description
Wrapper around sys::jstaticfieldid
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
jstaticfieldid
.
Implementations
sourceimpl<'a> JStaticFieldID<'a>
impl<'a> JStaticFieldID<'a>
sourcepub fn into_inner(self) -> jfieldID
pub fn into_inner(self) -> jfieldID
Unwrap to the internal jni type.
Trait Implementations
sourceimpl<'a> Clone for JStaticFieldID<'a>
impl<'a> Clone for JStaticFieldID<'a>
sourcefn clone(&self) -> JStaticFieldID<'a>
fn clone(&self) -> JStaticFieldID<'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, JStaticFieldID<'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, JStaticFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
sourcefn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticFieldID<'a>>
fn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticFieldID<'a>>
Look up the concrete type from the JVM.
sourceimpl<'a> From<*mut _jfieldID> for JStaticFieldID<'a>
impl<'a> From<*mut _jfieldID> for JStaticFieldID<'a>
impl<'a> Copy for JStaticFieldID<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for JStaticFieldID<'a>
impl<'a> !Send for JStaticFieldID<'a>
impl<'a> !Sync for JStaticFieldID<'a>
impl<'a> Unpin for JStaticFieldID<'a>
impl<'a> UnwindSafe for JStaticFieldID<'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