Get the conventional prefix character for this status. - Unchanged: ` ` (space) - Added: `+` - Removed: `-`
(&self)
| 89 | /// - Added: `+` |
| 90 | /// - Removed: `-` |
| 91 | pub fn prefix(&self) -> char { |
| 92 | match self { |
| 93 | LineStatus::Unchanged => ' ', |
| 94 | LineStatus::Added => '+', |
| 95 | LineStatus::Removed => '-', |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /// Check if this line represents a change. |
| 100 | pub fn is_change(&self) -> bool { |