pub struct FilterResult {
pub excluded: Vec<ExcludedFile>,
pub all_excluded: bool,
}Expand description
Result of filtering — carries excluded files AND whether all staged files were excluded.
Fields§
§excluded: Vec<ExcludedFile>§all_excluded: boolImplementations§
Source§impl FilterResult
impl FilterResult
Sourcepub fn all_machine_generated(&self) -> bool
pub fn all_machine_generated(&self) -> bool
True only when every exclusion is machine-generated (lockfile, binary, or minified). HeuristicSize exclusions do NOT count as machine-generated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterResult
impl RefUnwindSafe for FilterResult
impl Send for FilterResult
impl Sync for FilterResult
impl Unpin for FilterResult
impl UnsafeUnpin for FilterResult
impl UnwindSafe for FilterResult
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