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

Method as_char

atomic-core/src/crdt/branch.rs:94–99  ·  view source on GitHub ↗

Returns the state as a single character for compact display.

(&self)

Source from the content-addressed store, hash-verified

92
93 /// Returns the state as a single character for compact display.
94 pub fn as_char(&self) -> char {
95 match self {
96 BranchState::Alive => 'A',
97 BranchState::Deleted => 'D',
98 }
99 }
100}
101
102impl fmt::Display for BranchState {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected