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]
impl<T: Clone> Clone for Source<T>
fn clone(&self) -> Source<T>
[src]
fn clone(&self) -> Source<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Clone> Calc for Source<T>
[src]
impl<T: Clone> Calc for Source<T>
type Value = T
The type of values calculated by the node.
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
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