MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / prefix

Method prefix

atomic-core/src/diff/display.rs:91–97  ·  view source on GitHub ↗

Get the conventional prefix character for this status. - Unchanged: ` ` (space) - Added: `+` - Removed: `-`

(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

materialize_prefixMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected