pub enum Kind {
Expendable,
Precious,
}
Expand description
The kind of ignored item.
This classification is obtained when checking if a path matches an ignore pattern.
Variants§
Expendable
The item is ignored and will be removed to make place for tracked items that are to be checked out.
This is the default for ignored items.
Another way of thinking about this class is to consider these files trashable, or talk about them as ignored-and-expendable
.
Precious
An ignored file was additionally marked as precious using the $
prefix to indicate the file shall be kept.
This means that precious files are treated like untracked files, which also must not be removed, but won’t show up by default
as they are also ignored.
One can also talk about them as ignored-and-precious
.
Trait Implementations§
Source§impl Ord for Kind
impl Ord for Kind
Source§impl PartialOrd for Kind
impl PartialOrd for Kind
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more