#[repr(transparent)]pub struct JFieldID<'a> { /* private fields */ }
Expand description
Wrapper around sys::jfieldid
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
jfieldid
.
Implementations
sourceimpl<'a> JFieldID<'a>
impl<'a> JFieldID<'a>
sourcepub fn into_inner(self) -> jfieldID
pub fn into_inner(self) -> jfieldID
Unwrap to the internal jni type.
Trait Implementations
sourceimpl<'a, 'c, T, U, V> Desc<'a, JFieldID<'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, JFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a> Copy for JFieldID<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for JFieldID<'a>
impl<'a> !Send for JFieldID<'a>
impl<'a> !Sync for JFieldID<'a>
impl<'a> Unpin for JFieldID<'a>
impl<'a> UnwindSafe for JFieldID<'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