AncestorFinder
struct · ferroui-controls · v0.5.0
struct AncestorFinder
Observes the nearest ancestor of a class along the parent chain of an element.
Members
create
fn create<T: ObjectType>(control: &Ref<StyledElement>) -> Rc<dyn IObservable<Option<Ref<T>>>>
An observable of the nearest ancestor of class T of control:
None while there is none.
create_for_type
fn create_for_type(control: &Ref<StyledElement>, ancestor_type: &'static TypeInfo) -> Rc<dyn IObservable<Option<Ref<StyledElement>>>>
An observable of the nearest ancestor of class ancestor_type of
control: None while there is none.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.