FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StyleHostRef

    enum · ferroui-base · v0.5.0

    enum StyleHostRef
    

    A strong reference to a style host: a styled element, or another host such as the application object.

    View source

    Members

    Element

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

    Source

    Other

    Other(std::rc::Rc<dyn IStyleHost>)
    

    Source

    as_element

    fn as_element(self: &Self) -> Option<&Ref<StyledElement>>
    

    The host as a styled element, if it is one.

    Source

    to_resource_host

    fn to_resource_host(self: &Self) -> ResourceHostRef
    

    The host as a resource host.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref
    • PartialEq
    • From<Ref<T>>
    • From<&Ref<T>>
    • From<Rc<dyn IStyleHost>>
    • From<Rc<T>>

    Availability

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