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

Method short

atomic-identity/src/identity.rs:89–91  ·  view source on GitHub ↗

Get a short form of the ID for display (first 8 characters).

(&self)

Source from the content-addressed store, hash-verified

87
88 /// Get a short form of the ID for display (first 8 characters).
89 pub fn short(&self) -> String {
90 self.to_base32()[..8].to_string()
91 }
92}
93
94impl fmt::Debug for IdentityId {

Callers 3

test_identity_id_shortFunction · 0.45
find_identity_dirMethod · 0.45
mainFunction · 0.45

Calls 1

to_base32Method · 0.45

Tested by 2

test_identity_id_shortFunction · 0.36
mainFunction · 0.36