MCPcopy Create free account
hub / github.com/cosdata/cosdata / print_graph

Method print_graph

org/src/version_tree.rs:70–84  ·  view source on GitHub ↗
(&self, depth: usize)

Source from the content-addressed store, hash-verified

68 }
69
70 fn print_graph(&self, depth: usize) {
71 let indent = " ".repeat(depth * 4);
72 println!("{}Version {}: {:?}", indent, self.version, self.data);
73
74 for pointer in &self.pointers {
75 if let Some(ref p) = pointer {
76 println!(
77 "{}-> points to Version {}",
78 indent,
79 p.lock().unwrap().version
80 );
81 p.lock().unwrap().print_graph(depth + 1);
82 }
83 }
84 }
85}
86
87#[derive(Debug)]

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected