[−][src]Struct uni_tmp_jni::objects::JWeak
Wrapper around sys::jweak
that adds a lifetime. This prevents it from
outliving the context in which it was acquired. 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 jweak
.
See also: WeakGlobalRef
Implementations
impl<'a> JWeak<'a>
[src]
pub fn into_inner(self) -> jweak
[src]
Unwrap to the internal jni type.
pub fn null() -> Self
[src]
Creates a new null object
Trait Implementations
impl<'a> Clone for JWeak<'a>
[src]
impl<'a> Copy for JWeak<'a>
[src]
impl<'a> Debug for JWeak<'a>
[src]
impl<'a> Deref for JWeak<'a>
[src]
impl<'a> From<*mut _jobject> for JWeak<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for JWeak<'a>
impl<'a> !Send for JWeak<'a>
impl<'a> !Sync for JWeak<'a>
impl<'a> Unpin for JWeak<'a>
impl<'a> UnwindSafe for JWeak<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,