pub type BoxedWeakVar<T> = Box<dyn WeakVarBoxed<T>>;
Expand description
Represents a weak reference to a BoxedVar<T>
.
Aliased Type§
struct BoxedWeakVar<T>(/* private fields */);
Trait Implementations§
source§impl<T: VarValue> AnyWeakVar for BoxedWeakVar<T>
impl<T: VarValue> AnyWeakVar for BoxedWeakVar<T>
source§fn clone_any(&self) -> BoxedAnyWeakVar
fn clone_any(&self) -> BoxedAnyWeakVar
Clone the weak reference.
source§fn strong_count(&self) -> usize
fn strong_count(&self) -> usize
Gets the number of strong references to the variable. Read more
source§fn weak_count(&self) -> usize
fn weak_count(&self) -> usize
Gets the number of weak references to the variable. Read more
source§fn upgrade_any(&self) -> Option<BoxedAnyVar>
fn upgrade_any(&self) -> Option<BoxedAnyVar>
source§impl<T: VarValue> Clone for BoxedWeakVar<T>
impl<T: VarValue> Clone for BoxedWeakVar<T>
source§impl<T: VarValue> WeakVar<T> for BoxedWeakVar<T>
impl<T: VarValue> WeakVar<T> for BoxedWeakVar<T>
source§type Upgrade = Box<dyn VarBoxed<T>>
type Upgrade = Box<dyn VarBoxed<T>>
Output of
WeakVar::upgrade
.source§fn boxed(self) -> BoxedWeakVar<T>where
Self: Sized,
fn boxed(self) -> BoxedWeakVar<T>where
Self: Sized,
Gets the weak reference a as
BoxedWeakVar<T>
, does not double box.