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§
Source§impl<'a> JStaticFieldID<'a>
impl<'a> JStaticFieldID<'a>
Sourcepub fn into_inner(self) -> *mut _jfieldID
pub fn into_inner(self) -> *mut _jfieldID
Unwrap to the internal jni type.
Trait Implementations§
Source§impl<'a> AdapterTransform<*mut _jfieldID> for JStaticFieldID<'a>
impl<'a> AdapterTransform<*mut _jfieldID> for JStaticFieldID<'a>
Source§impl<'a> Clone for JStaticFieldID<'a>
impl<'a> Clone for JStaticFieldID<'a>
Source§fn clone(&self) -> JStaticFieldID<'a>
fn clone(&self) -> JStaticFieldID<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, U, V> Desc<'a, JStaticFieldID<'a>> for (JClass<'a>, U, V)
impl<'a, U, V> Desc<'a, JStaticFieldID<'a>> for (JClass<'a>, U, V)
impl<'a> Copy for JStaticFieldID<'a>
Auto Trait Implementations§
impl<'a> Freeze for JStaticFieldID<'a>
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§
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