pub struct Global<R> { /* private fields */ }
Expand description
A global java reference. Cloning it increments a reference count. When the last global is dropped pointing to a java object, the underlying JVM global reference is released.
Trait Implementations§
source§impl<SUB, SUP> IsInstance<Global<SUP>> for Global<SUB>where
SUB: IsInstance<SUP>,
impl<SUB, SUP> IsInstance<Global<SUP>> for Global<SUB>where
SUB: IsInstance<SUP>,
Auto Trait Implementations§
impl<R> RefUnwindSafe for Global<R>where
R: RefUnwindSafe,
impl<R> Send for Global<R>where
R: Send,
impl<R> Sync for Global<R>where
R: Sync,
impl<R> Unpin for Global<R>where
R: Unpin,
impl<R> UnwindSafe for Global<R>where
R: UnwindSafe,
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