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
12
13
14
15
16
//! `Clear` (`Cache/ObservableCacheEx.Clear.cs`). The forms on `IIntermediateCache` and
//! `LockFreeObservableCache` are their `clear`.

/// The form on source caches, a provided method of [`SourceCacheEx`](crate::cache::SourceCacheEx).
macro_rules! clear_source_methods {
    () => {
        /// Removes every item (`Clear(ISourceCache)`).
        fn clear(&self)
        where
            Self: crate::cache::ISourceCache<T, K>,
        {
            self.edit(&mut |updater: &mut dyn crate::cache::ISourceUpdater<T, K>| updater.clear());
        }
    };
}
pub(crate) use clear_source_methods;