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

Method as_char

atomic-core/src/crdt/leaf.rs:84–89  ·  view source on GitHub ↗

Returns the state as a single character for compact display.

(&self)

Source from the content-addressed store, hash-verified

82
83 /// Returns the state as a single character for compact display.
84 pub fn as_char(&self) -> char {
85 match self {
86 LeafState::Alive => 'A',
87 LeafState::Deleted => 'D',
88 }
89 }
90}
91
92impl fmt::Display for LeafState {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected