Trait depends::core::Clean

source ·
pub trait Clean {
    // Required method
    fn clean(&mut self);
}
Expand description

For the majority of cases, this trait can be ignored, and a default implementation (no-op) can be used.

When to use Clean

Nodes which provide dependees the ability to see recently changed values (since the last call to Resolve), such as which keys have been recently mutated in an internal hashmap, must reset the state used to track this using this trait.

Example

An example is given here.

Required Methods§

source

fn clean(&mut self)

Implementors§

source§

impl<T, N> Clean for NodeState<T, N>where T: Clean,