Struct calc_graph::Func1[][src]

pub struct Func1<C1, T, F> { /* fields omitted */ }

Calculates a value from another node.

Trait Implementations

impl<C1: Calc, T: Clone + PartialEq, F: FnMut(C1::Value) -> T> Calc for Func1<C1, T, F>
[src]

The type of values calculated by the node.

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

When this node is used as a precedent, add_dep is called by dependent nodes when they are created. Read more

Auto Trait Implementations

impl<C1, T, F> Send for Func1<C1, T, F> where
    C1: Send,
    F: Send,
    T: Send

impl<C1, T, F> Sync for Func1<C1, T, F> where
    C1: Sync,
    F: Sync,
    T: Sync