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
//! `IEvaluateAware` (`Binding/IEvaluateAware.cs`).

use std::rc::Rc;

/// An object that evaluates itself again when it is refreshed (`IEvaluateAware`), which
/// `invoke_evaluate` calls.
pub trait IEvaluateAware {
    /// Evaluates the object again (`Evaluate`).
    fn evaluate(&self);
}

impl<E: IEvaluateAware + ?Sized> IEvaluateAware for Rc<E> {
    fn evaluate(&self) {
        (**self).evaluate();
    }
}