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

macro_rules! ref_count_methods {
    () => {
        /// One cache of the sequence, shared by the subscribers: made when the first subscribes,
        /// disposed when the last unsubscribes (`RefCount`).
        fn ref_count(&self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::cache::ChangeSet<T, K>>> {
            crate::cache::internal::ref_count(self.change_sets())
        }
    };
}
pub(crate) use ref_count_methods;