Struct calc_graph::Source[][src]

pub struct Source<T> { /* fields omitted */ }

Holds a value that can be updated directly from outside the graph.

Trait Implementations

impl<T: Clone> Clone for Source<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Clone> Calc for Source<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 Source<T> where
    T: Send

impl<T> Sync for Source<T> where
    T: Send