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
//! `Flatten` (`Cache/ObservableCacheEx.Flatten.cs`).

macro_rules! flatten_methods {
    () => {
        /// The changes of the change sets, one at a time (`Flatten`).
        fn flatten(&self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::Change<T, K>>> {
            ferroui_reactive::ObservableExt::select_many_iter(&self.change_sets(), |changes: crate::cache::ChangeSet<T, K>| changes.to_vec())
        }
    };
}
pub(crate) use flatten_methods;