Get a display name for this hunk kind.
(&self)
| 123 | |
| 124 | /// Get a display name for this hunk kind. |
| 125 | pub fn name(&self) -> &'static str { |
| 126 | match self { |
| 127 | HunkKind::Deleted => "deleted", |
| 128 | HunkKind::Inserted => "inserted", |
| 129 | HunkKind::Modified => "modified", |
| 130 | HunkKind::Unchanged => "unchanged", |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | /// Get the ANSI color code for terminal display. |
| 135 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected