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

Method push

src/models/chunked_list.rs:79–81  ·  view source on GitHub ↗
(&self, item: LazyItem<T>)

Source from the content-addressed store, hash-verified

77 }
78
79 pub fn push(&self, item: LazyItem<T>) {
80 self.items.write().unwrap().push(item);
81 }
82
83 pub fn get(&self, index: usize) -> Option<LazyItem<T>> {
84 self.items.read().unwrap().get(index).cloned()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected