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

Method new

src/models/collection_cache.rs:27–31  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

25
26impl CollectionNameKey {
27 pub fn new(name: &str) -> Self {
28 let mut hasher = DefaultHasher::new();
29 name.hash(&mut hasher);
30 Self(hasher.finish())
31 }
32}
33
34impl From<u64> for CollectionNameKey {

Callers

nothing calls this directly

Calls 3

hashMethod · 0.80
cloneMethod · 0.80
set_evict_hookMethod · 0.80

Tested by

no test coverage detected