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.
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>
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).
unsubscribe
fn unsubscribe(self: &Self)
Ends the subscription (Unsubscribed).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.