Skip to main content

InvalidateWhenEx

Trait InvalidateWhenEx 

Source
pub trait InvalidateWhenEx<T> {
    // Required method
    fn invalidate_when<U: 'static>(
        &self,
        invalidate: Rc<dyn IObservable<U>>,
    ) -> Rc<dyn IObservable<T>>;
}
Expand description

The invalidation of an aggregating sequence (InvalidateWhen), for every sequence.

Required Methods§

Source

fn invalidate_when<U: 'static>( &self, invalidate: Rc<dyn IObservable<U>>, ) -> Rc<dyn IObservable<T>>

The sequence, subscribed again each time invalidate notifies, without repeating a value: used when an item changes inline, so that an aggregation is computed again (InvalidateWhen(IObservable<Unit>) and InvalidateWhen<T, TTrigger>(IObservable<TTrigger?>), which are one method: the trigger’s values are not read).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Clone + PartialEq + 'static> InvalidateWhenEx<T> for Rc<dyn IObservable<T>>

Source§

fn invalidate_when<U: 'static>( &self, invalidate: Rc<dyn IObservable<U>>, ) -> Rc<dyn IObservable<T>>

Implementors§