FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WeakResourceHost

    enum · ferroui-base · v0.5.0

    enum WeakResourceHost
    

    A weak reference to a resource host.

    View source

    Members

    Element

    Element(crate::WeakRef<crate::StyledElement>)
    

    Source

    Other

    Other(std::rc::Weak<dyn IResourceHost>)
    

    Source

    upgrade

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

    Returns a strong reference if the host is still alive.

    Source

    Trait implementations

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

    Availability

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