NotAWeakReference
struct · ferroui-reactiveui · v0.5.0
struct NotAWeakReference
A reference to an object that is always alive (NotAWeakReference): it holds the object
strongly, for an API that expects something shaped like a weak reference. The message bus
holds its channels with it.
Members
new
fn new(target: Rc<dyn Any>) -> Self
A reference to target (NotAWeakReference(object)).
target
fn target(self: &Self) -> &Rc<dyn Any>
The object (Target).
is_alive
fn is_alive(self: &Self) -> bool
Whether the object is alive: always, since the reference is strong (IsAlive).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.