FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(target: Rc<dyn Any>) -> Self
    

    A reference to target (NotAWeakReference(object)).

    Source

    target

    fn target(self: &Self) -> &Rc<dyn Any>
    

    The object (Target).

    Source

    is_alive

    fn is_alive(self: &Self) -> bool
    

    Whether the object is alive: always, since the reference is strong (IsAlive).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.