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

Method id

src/models/versioned_vec.rs:21–23  ·  view source on GitHub ↗
(storage: u64)

Source from the content-addressed store, hash-verified

19 type Id = u32;
20
21 fn id(storage: u64) -> Self::Id {
22 (storage >> 32) as u32
23 }
24
25 fn into_storage(self) -> u64 {
26 ((self.0 as u64) << 32) | (self.1.to_bits() as u64)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected