Enum gix_ignore::Kind
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)