Enum ignore::Match [−][src]
pub enum Match<T> { None, Ignore(T), Whitelist(T), }
Expand description
The result of a glob match.
The type parameter T
typically refers to a type that provides more
information about a particular match. For example, it might identify
the specific gitignore file and the specific glob pattern that caused
the match.
Variants
The path didn’t match any glob.
The highest precedent glob matched indicates the path should be ignored.
The highest precedent glob matched indicates the path should be whitelisted.
Implementations
Returns true if the match result implies the path should be ignored.
Returns true if the match result implies the path should be whitelisted.
Inverts the match so that Ignore
becomes Whitelist
and
Whitelist
becomes Ignore
. A non-match remains the same.
Apply the given function to the value inside this match.
If the match has no value, then return the match unchanged.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Match<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Match<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more