Struct calc_graph::Func4 [−][src]
pub struct Func4<C1, C2, C3, C4, T, F> { /* fields omitted */ }
Calculates a value from 4 nodes.
Trait Implementations
impl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, T: Clone + PartialEq, F: FnMut(C1::Value, C2::Value, C3::Value, C4::Value) -> T> Calc for Func4<C1, C2, C3, C4, T, F>
[src]
impl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, T: Clone + PartialEq, F: FnMut(C1::Value, C2::Value, C3::Value, C4::Value) -> T> Calc for Func4<C1, C2, C3, C4, T, F>
type Value = T
The type of values calculated by the node.
fn eval(&mut self, dirty: &mut BitSet) -> (usize, T)
[src]
fn eval(&mut self, dirty: &mut BitSet) -> (usize, T)
Returns the value held within the node and the version number of the inputs used to calcuate that value. The value is recalculated if needed. Read more
fn add_dep(&mut self, seen: &mut BitSet, dep: usize)
[src]
fn add_dep(&mut self, seen: &mut BitSet, dep: usize)
When this node is used as a precedent, add_dep
is called by dependent nodes when they are created. Read more