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§
Trait Implementations§
Source§impl<'a> AutoDeallocateBuilder<'a, JFieldID<'a>> for MutAutoDeallocateObjectArrayBuilder<jfieldID>
impl<'a> AutoDeallocateBuilder<'a, JFieldID<'a>> for MutAutoDeallocateObjectArrayBuilder<jfieldID>
impl<'a> Copy for JFieldID<'a>
Auto Trait Implementations§
impl<'a> Freeze for JFieldID<'a>
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§
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