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

Method with_data

src/models/chunked_list.rs:29–35  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

27
28impl<T: Clone> LazyItem<T> {
29 pub fn with_data(data: T) -> Self {
30 LazyItem {
31 data: Some(Arc::new(RwLock::new(data))),
32 offset: None,
33 decay_counter: 0,
34 }
35 }
36}
37
38impl<T: Clone> LazyItemRef<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected