pub fn source<T>(&self, value: T) -> Node<Source<T>> {
        let version = self.next_version.next();

        let inner = SourceInner {
            deps: BitSet::new(),
            version,
            value,
        };

        let calc = Source {
            inner: Arc::new(Mutex::new(inner)),
            next_version: self.next_version.clone(),
        };

        Node {
            calc,
            graph: Some(self.inner.clone()),
        }
    }
/// Defines a new `Node<Source>` containing an initial value.
Defines a new `Node` containing an initial value.
Defines a new ` Node ` containing an initial value .
pub fn source<T>(&self, value: T) -> Node<Source<T>> {
        let version = self.next_version.next();
        let inner = SourceInner {
            deps: BitSet::new(),
            version,
            value,
        };
        let calc = Source {
            inner: Arc::new(Mutex::new(inner)),
            next_version: self.next_version.clone(),
        };
        Node {
            calc,
            graph: Some(self.inner.clone()),
        }
    }
pub fn source < T > ( & self , value : T ) -> Node < Source < T > > { let version = self . next_version . next ( ) ; let inner = SourceInner { deps : BitSet :: new ( ) , version , value , } ; let calc = Source { inner : Arc :: new ( Mutex :: new ( inner ) ) , next_version : self . next_version . clone ( ) , } ; Node { calc , graph : Some ( self . inner . clone ( ) ) , } }
Defines a new `Node<Source>` containing an initial value.
Defines a new ` Node<Source > ` containing an initial value .
&self
value
T
&self
value
T