pub struct PathExclusions { /* private fields */ }Expand description
Compiled Exclusions, matched the way the loader skips files.
Implementations§
Source§impl PathExclusions
impl PathExclusions
pub fn is_empty(&self) -> bool
Sourcepub fn excludes_file(&self, file: &File) -> bool
pub fn excludes_file(&self, file: &File) -> bool
Check a database file by its path, or by its logical name when it has none.
Sourcepub fn is_excluded(&self, canonical: &Path, file_type: FileType) -> bool
pub fn is_excluded(&self, canonical: &Path, file_type: FileType) -> bool
Check an absolute source path loaded as file_type. A command’s own exclusions
also skip a file when every source that can supply it in that tier prunes a
directory above it. Vendored files include host files Git ignores.
Trait Implementations§
Source§impl Clone for PathExclusions
impl Clone for PathExclusions
Source§impl Debug for PathExclusions
impl Debug for PathExclusions
Auto Trait Implementations§
impl Forget for PathExclusions
impl Freeze for PathExclusionswhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GlobSetMatchStrategy>: Freeze,
PhantomData<PathBuf>: Freeze,
PhantomData<SourcePattern>: Freeze,
impl Move for PathExclusions
impl RefUnwindSafe for PathExclusionswhere
Atomic<usize>: RefUnwindSafe,
Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>: RefUnwindSafe,
Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + Send + UnwindSafe + RefUnwindSafe>>: RefUnwindSafe,
impl Send for PathExclusionswhere
RawVecInner: Send,
RawTable<(Vec<u8>, Vec<usize>)>: Send,
Arc<dyn AcAutomaton>: Send,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Send,
Arc<RegexI>: Send,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Send,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Send,
impl Sync for PathExclusionswhere
RawVecInner: Sync,
RawTable<(Vec<u8>, Vec<usize>)>: Sync,
Arc<dyn AcAutomaton>: Sync,
RawTable<(Vec<u8>, Vec<(usize, Regex)>)>: Sync,
Arc<RegexI>: Sync,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Sync,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Sync,
impl Unpin for PathExclusionswhere
*const u8 is !null: Unpin,
Arc<dyn AcAutomaton>: Unpin,
Arc<RegexI>: Unpin,
Box<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Unpin,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + Send + UnwindSafe + RefUnwindSafe>>>: Unpin,
impl UnsafeUnpin for PathExclusionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GlobSetMatchStrategy>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<SourcePattern>: UnsafeUnpin,
impl UnwindSafe for PathExclusionswhere
RawVecInner: UnwindSafe,
HashMap<Vec<u8>, Vec<usize>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<dyn AcAutomaton>: UnwindSafe,
HashMap<Vec<u8>, Vec<(usize, Regex)>, BuildHasherDefault<Hasher>>: UnwindSafe,
Arc<RegexI>: UnwindSafe,
BoxRaw<Pool<Cache, Box<dyn Fn() -> Cache + Sync + Send + UnwindSafe + RefUnwindSafe>>>: UnwindSafe,
Arc<Pool<PatternSet, Box<dyn Fn() -> PatternSet + Sync + Send + UnwindSafe + RefUnwindSafe>>>: UnwindSafe,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more