fn mark_as_waiting(&self) {
        for node in &self.nodes {
            if node.state.get() == NodeState::Waiting {
                node.state.set(NodeState::Success);
            }
        }

        for node in &self.nodes {
            if node.state.get() == NodeState::Pending {
                self.mark_neighbors_as_waiting_from(node);
            }
        }
    }
/// Marks all nodes that depend on a pending node as NodeState::Waiting.
Marks all nodes that depend on a pending node as NodeState::Waiting.
Marks all nodes that depend on a pending node as NodeState :: Waiting .
fn mark_as_waiting(&self) {
        for node in &self.nodes {
            if node.state.get() == NodeState::Waiting {
                node.state.set(NodeState::Success);
            }
        }
        for node in &self.nodes {
            if node.state.get() == NodeState::Pending {
                self.mark_neighbors_as_waiting_from(node);
            }
        }
    }
fn mark_as_waiting ( & self ) { for node in & self . nodes { if node . state . get ( ) == NodeState :: Waiting { node . state . set ( NodeState :: Success ) ; } } for node in & self . nodes { if node . state . get ( ) == NodeState :: Pending { self . mark_neighbors_as_waiting_from ( node ) ; } } }
Marks all nodes that depend on a pending node as NodeState::Waiting.
Marks all nodes that depend on a pending node as NodeState :: Waiting .
&self
&self