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

Method as_char

atomic-core/src/crdt/trunk.rs:110–116  ·  view source on GitHub ↗

Returns the state as a single character for compact display.

(&self)

Source from the content-addressed store, hash-verified

108
109 /// Returns the state as a single character for compact display.
110 pub fn as_char(&self) -> char {
111 match self {
112 TrunkState::Alive => 'A',
113 TrunkState::Deleted => 'D',
114 TrunkState::Zombie => 'Z',
115 }
116 }
117}
118
119impl fmt::Display for TrunkState {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected