FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AncestorFinder

    struct · ferroui-controls · v0.5.0

    struct AncestorFinder
    

    Observes the nearest ancestor of a class along the parent chain of an element.

    View source

    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.

    Source

    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.

    Source

    Trait implementations

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

    Availability

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