Get the prefix character for this line.
(&self)
| 490 | |
| 491 | /// Get the prefix character for this line. |
| 492 | pub fn prefix(&self) -> char { |
| 493 | match self.status { |
| 494 | LineStatus::Unchanged => ' ', |
| 495 | LineStatus::Added => '+', |
| 496 | LineStatus::Removed => '-', |
| 497 | } |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | impl fmt::Display for HunkLine { |