SwitchCacheEx
trait · ferroui-dynamic-data · v0.5.0
trait SwitchCacheEx
Switch of a sequence of caches or of sequences of change sets.
Members
Item
type Item: Clone + 'static
The type of the items.
Key
type Key: Eq + std::hash::Hash + Clone + 'static
The type of the keys.
switch_cache
fn switch_cache(self: &Self) -> Rc<dyn IObservable<ChangeSet<<Self as >::Item, <Self as >::Key>>>
The change sets of the latest source: each new source removes the items of the previous
one, then delivers its own; the result completes when the sequence and the latest source
have completed, and an error of either ends it (Switch(IObservable<IObservableCache>),
Switch(IObservable<IObservable<IChangeSet>>)).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.