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

Method state_short

atomic-repository/src/repository/views.rs:45–52  ·  view source on GitHub ↗

Get a short version of the Merkle state (first 12 characters).

(&self)

Source from the content-addressed store, hash-verified

43
44 /// Get a short version of the Merkle state (first 12 characters).
45 pub fn state_short(&self) -> String {
46 let full = self.state.to_base32();
47 if full.len() > 12 {
48 full[..12].to_string()
49 } else {
50 full
51 }
52 }
53
54 /// Check if the view is empty (has no changes).
55 pub fn is_empty(&self) -> bool {

Callers 1

Calls 2

to_base32Method · 0.45
lenMethod · 0.45

Tested by 1