Returns the state as a single character for compact display.
(&self)
| 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 | |
| 102 | impl fmt::Display for BranchState { |
nothing calls this directly
no outgoing calls
no test coverage detected