[−][src]Struct eater_arc_illegal::WeakIllegal
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: RefUnwindSafe,
impl<T> Unpin for WeakIllegal<T>
impl<T> UnwindSafe for WeakIllegal<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
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>,