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