ferroui-dynamic-data 0.3.0

A port of DynamicData for FerroUI: reactive collections, change sets, observable caches and lists with their operators, independent of the user interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! `NotEmpty` (`Cache/ObservableCacheEx.NotEmpty.cs`).

macro_rules! not_empty_methods {
    () => {
        /// The change sets that have changes (`NotEmpty`).
        fn not_empty(&self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>> {
            ferroui_reactive::ObservableExt::where_(&self.change_sets(), |changes: &crate::cache::ChangeSet<T, K>| changes.count() != 0)
        }
    };
}
pub(crate) use not_empty_methods;