[][src]Struct uni_tmp_jni::objects::JWeak

#[repr(transparent)]pub struct JWeak<'a> { /* fields omitted */ }

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]

type Target = jweak

The resulting type after dereferencing.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.