MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / print_node

Method print_node

publication/code/chapter09/dfs.rs:57–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

55 }
56
57 fn print_node(&self) {
58 let mut curr = self.first.clone();
59 while let Some(val) = curr {
60 print!("[{}]", &val.borrow().data);
61 curr = val.borrow().next.clone();
62 }
63 print!("\n");
64 }
65}
66
67// 构建图

Callers 1

build_graphFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected