Type Alias zng_var::BoxedWeakVar

source ·
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>

source§

fn clone_any(&self) -> BoxedAnyWeakVar

Clone the weak reference.
source§

fn strong_count(&self) -> usize

Gets the number of strong references to the variable. Read more
source§

fn weak_count(&self) -> usize

Gets the number of weak references to the variable. Read more
source§

fn upgrade_any(&self) -> Option<BoxedAnyVar>

Upgrade to a strong AnyVar clone. Read more
source§

fn as_any(&self) -> &dyn Any

Access to dyn Any methods.
source§

impl<T: VarValue> Clone for BoxedWeakVar<T>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: VarValue> WeakVar<T> for BoxedWeakVar<T>

source§

type Upgrade = Box<dyn VarBoxed<T>>

Output of WeakVar::upgrade.
source§

fn upgrade(&self) -> Option<Self::Upgrade>

Upgrade to a strong BoxedVar<T> clone. Read more
source§

fn boxed(self) -> BoxedWeakVar<T>
where Self: Sized,

Gets the weak reference a as BoxedWeakVar<T>, does not double box.