pub struct Glob { /* private fields */ }
Expand description
Glob represents a single glob in a gitignore file.
This is used to report information about the highest precedent glob that matched in one or more gitignore files.
Implementations§
source§impl Glob
impl Glob
sourcepub fn is_whitelist(&self) -> bool
pub fn is_whitelist(&self) -> bool
Whether this was a whitelisted glob or not.
sourcepub fn is_only_dir(&self) -> bool
pub fn is_only_dir(&self) -> bool
Whether this glob must match a directory or not.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Glob
impl Send for Glob
impl Sync for Glob
impl Unpin for Glob
impl UnwindSafe for Glob
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