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

Method new

src/models/tree_map.rs:234–241  ·  view source on GitHub ↗
(version: VersionNumber, value: T)

Source from the content-addressed store, hash-verified

232
233impl<T> VersionedItem<T> {
234 pub fn new(version: VersionNumber, value: T) -> Self {
235 Self {
236 serialized_at: RwLock::new(None),
237 version,
238 value: Some(value),
239 next: None,
240 }
241 }
242
243 fn new_delete(version: VersionNumber) -> Self {
244 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected