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.
Members
Element
Element(crate::Ref<crate::StyledElement>)
Other
Other(std::rc::Rc<dyn IStyleHost>)
as_element
fn as_element(self: &Self) -> Option<&Ref<StyledElement>>
The host as a styled element, if it is one.
to_resource_host
fn to_resource_host(self: &Self) -> ResourceHostRef
The host as a resource host.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDerefPartialEqFrom<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.