Macro enso_data::dependency_graph [−][src]
macro_rules! dependency_graph { ($($fst:tt -> $snd:tt),* $(,)?) => { ... }; }
Expand description
Utility macro allowing easy construction of the DependencyGraph
. The following code:
use crate::enso_data::dependency_graph; dependency_graph!(1->2, 2->3);
will produce:
ⓘ
{ let mut graph = DependencyGraph::new(); graph.insert_dependency(1,2); graph.insert_dependency(2,3); graph }