WeakValue
enum · ferroui-base · v0.5.0
enum WeakValue
A reference to a binding source that does not keep it alive.
Objects of the class hierarchy and registered reference (model) types are held weakly, as the managed implementation holds every source. Plain values (numbers, strings, value structs) own nothing that could form a cycle and exist only as the transient box that carries them, so they are held by value.
Members
Reference
Reference(std::rc::Weak<dyn AnyValue>)
A shared model object.
Object
Object(crate::WeakRef<crate::FerroObject>, std::any::TypeId)
An object of the class hierarchy and the handle type it was seen as.
Value
Value(crate::BoxedValue)
A plain value.
new
fn new(value: &BoxedValue) -> Self
upgrade
fn upgrade(self: &Self) -> Option<BoxedValue>
The source, if it is still alive.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherClonePartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.