#[non_exhaustive]pub enum CleanIgnored {
Exclude,
Include,
Only,
}Expand description
How Clean treats ignored files/directories — the -x/-X axis of
git clean, orthogonal to directories.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exclude
Leave ignored files alone (git’s default): only untracked-and-not-ignored entries are candidates.
Include
Also remove ignored files/directories (-x), in addition to the
ordinary untracked ones.
Only
Remove only ignored files/directories (-X) — untracked-but-not-ignored
entries are left alone.
Trait Implementations§
Source§impl Clone for CleanIgnored
impl Clone for CleanIgnored
Source§fn clone(&self) -> CleanIgnored
fn clone(&self) -> CleanIgnored
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CleanIgnored
Source§impl Debug for CleanIgnored
impl Debug for CleanIgnored
Source§impl Default for CleanIgnored
impl Default for CleanIgnored
Source§fn default() -> CleanIgnored
fn default() -> CleanIgnored
Returns the “default value” for a type. Read more
impl Eq for CleanIgnored
Source§impl PartialEq for CleanIgnored
impl PartialEq for CleanIgnored
impl StructuralPartialEq for CleanIgnored
Auto Trait Implementations§
impl Freeze for CleanIgnored
impl RefUnwindSafe for CleanIgnored
impl Send for CleanIgnored
impl Sync for CleanIgnored
impl Unpin for CleanIgnored
impl UnsafeUnpin for CleanIgnored
impl UnwindSafe for CleanIgnored
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