FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShowExpanderObservable

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct ShowExpanderObservable<M: TreeModel>
    

    ShowExpanderObservable<TModel>: an observable with a single subscriber of whether the expander of a model is shown.

    View source

    Members

    new

    fn new(child_selector: Rc<dyn Fn(&Rc<M>) -> Option<Models<M>>>, has_children_selector: Option<Accessor<M, bool>>, model: Rc<M>) -> Rc<Self>
    

    Source

    subscribe

    fn subscribe(self: &Self, observer: Rc<dyn Fn(bool) -> ()>)
    

    Subscribes the single observer (Subscribe, then Subscribed).

    Panics

    When the observable already has a subscriber (InvalidOperationException), or was unsubscribed before (ObjectDisposedException).

    Source

    unsubscribe

    fn unsubscribe(self: &Self)
    

    Ends the subscription (Unsubscribed).

    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
    • Drop

    Availability

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