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

Method new

src/models/prob_node.rs:38–43  ·  view source on GitHub ↗
(latest: SharedNode, file_offset: FileOffset)

Source from the content-addressed store, hash-verified

36
37impl LatestNode {
38 pub fn new(latest: SharedNode, file_offset: FileOffset) -> SharedLatestNode {
39 Box::into_raw(Box::new(Self {
40 latest,
41 file_offset,
42 }))
43 }
44
45 #[allow(invalid_reference_casting)]
46 #[allow(clippy::not_unsafe_ptr_arg_deref)]

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected