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

Method new

org/src/version_tree.rs:37–43  ·  view source on GitHub ↗
(version: u32, data: bool)

Source from the content-addressed store, hash-verified

35
36impl VersionNode {
37 fn new(version: u32, data: bool) -> Self {
38 VersionNode {
39 version,
40 data,
41 pointers: vec![None; 10], // Initialize with None values of length 10
42 }
43 }
44
45 fn insert_node(&mut self, target_version: Arc<Mutex<VersionNode>>) {
46 let target_version_lock = target_version.lock().unwrap();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected