[][src]Struct eater_arc_illegal::WeakIllegal

pub struct WeakIllegal<T> { /* fields omitted */ }

A weak reference to T

Implementations

impl<T> WeakIllegal<T>[src]

pub fn get(&self) -> Option<&T>[src]

Get a reference to T if T still exists

pub fn get_mut(&self) -> Option<&mut T>[src]

Get a mutable reference to T if T still exists

pub fn strong(&self) -> Option<ArcIllegal<T>>[src]

Upgrade this weak reference to a STRONG reference

pub fn upgrade(&self) -> Option<ArcIllegal<T>>[src]

Upgrade this weak reference to a ArcIllegal

pub fn ref_count(&self) -> usize[src]

Return the amount of references that hold this object

pub fn weak_ref_count(&self) -> usize[src]

Return the amount of weak references that hold this object

pub fn strong_ref_count(&self) -> usize[src]

Return the amount of "strong" references that hold this object

Trait Implementations

impl<T> Clone for WeakIllegal<T>[src]

impl<T> Drop for WeakIllegal<T>[src]

impl<T> Send for WeakIllegal<T>[src]

impl<T> Sync for WeakIllegal<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for WeakIllegal<T> where
    T: RefUnwindSafe

impl<T> Unpin for WeakIllegal<T>

impl<T> UnwindSafe for WeakIllegal<T> where
    T: RefUnwindSafe

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.