MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / count

Method count

atomic-core/examples/compact_semantic_codec/codec.rs:298–305  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

296 }
297
298 fn count(&mut self) -> Result<usize> {
299 let n = usize::try_from(get(&mut self.control)?)?;
300 ensure!(
301 n <= self.control.len(),
302 "count exceeds available control data"
303 );
304 Ok(n)
305 }
306
307 fn id(&mut self) -> Result<(NodeId, u32)> {
308 Ok((

Callers 2

leavesMethod · 0.45
decodeFunction · 0.45

Calls 1

getFunction · 0.70

Tested by

no test coverage detected