[][src]Struct sixtyfps::Weak

pub struct Weak<T: IntoWeak> { /* fields omitted */ }

Struct that's used to hold weak references for SixtyFPS components.

Implementations

impl<T: IntoWeak> Weak<T>[src]

pub fn upgrade(&self) -> Option<T> where
    T: IntoWeak
[src]

Returns a new strongly referenced component if some other instance still holds a strong reference. Otherwise, returns None.

pub fn unwrap(&self) -> T[src]

Convenience function that returns a new stronlyg referenced component if some other instance still holds a strong reference. Otherwise, this function panics.

Trait Implementations

impl<T: IntoWeak> Clone for Weak<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Weak<T>

impl<T> !Send for Weak<T>

impl<T> !Sync for Weak<T>

impl<T> Unpin for Weak<T>

impl<T> !UnwindSafe for Weak<T>

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.