Struct calc_graph::Const[][src]

pub struct Const<T>(_);

Calculates a node's value by returning the same value every time.

Trait Implementations

impl<T: Clone> Calc for Const<T>
[src]

The type of values calculated by the node.

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

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

Auto Trait Implementations

impl<T> Send for Const<T> where
    T: Send

impl<T> Sync for Const<T> where
    T: Sync