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

Method from_list

src/models/common.rs:708–714  ·  view source on GitHub ↗
(size: u8, kv: Vec<(K, V)>)

Source from the content-addressed store, hash-verified

706 }
707
708 pub fn from_list(size: u8, kv: Vec<(K, V)>) -> Self {
709 let tsh = Self::new(size);
710 for (k, v) in kv {
711 tsh.insert(k, v);
712 }
713 tsh
714 }
715
716 pub fn purge_all(&self) -> Vec<(K, V)> {
717 let mut list = Vec::new();

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected