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

Method token_count

atomic-core/src/output/crdt.rs:173–175  ·  view source on GitHub ↗

Returns the number of alive tokens.

(&self)

Source from the content-addressed store, hash-verified

171
172 /// Returns the number of alive tokens.
173 pub fn token_count(&self) -> usize {
174 self.tokens.iter().filter(|t| t.is_alive()).count()
175 }
176
177 /// Returns the number of all tokens (including deleted).
178 pub fn total_token_count(&self) -> usize {

Callers

nothing calls this directly

Calls 3

countMethod · 0.45
iterMethod · 0.45
is_aliveMethod · 0.45

Tested by

no test coverage detected