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

Method count

atomic-identity/src/store.rs:718–720  ·  view source on GitHub ↗

Get the number of identities in the store.

(&self)

Source from the content-addressed store, hash-verified

716
717 /// Get the number of identities in the store.
718 pub fn count(&self) -> Result<usize, IdentityError> {
719 Ok(self.list()?.len())
720 }
721
722 /// Get the directory for an identity.
723 fn identity_dir(&self, identity: &Identity) -> PathBuf {

Callers 1

Calls 2

lenMethod · 0.45
listMethod · 0.45

Tested by 1