Expand description
Pattern describes a single line in an ignore file and its semantics It is used to match a path with the given pattern
Re-exports§
pub use error::Error;pub use error::Result;pub use ignore_rules::IgnoreRules;pub use sync::PathSync;pub use sync::PathSyncSingleton;pub use crate::notify::make_watcher;pub use crate::notify::PathEvent;
Structs§
- Pattern
- Pattern is generic and could be an instance of String, Glob, Regex or any other object.
The type is evolved by compiling.
A pattern can start its life as
Pattern<String>and can be compiled intoPattern<Glob>orPattern<Regex>.
Enums§
- Match
Result - Show whether a path matches to a glob rule
- Path
Kind - Is the path only a directory, or could it be directory or file?
- Pattern
Effect - Is this pattern a ignore or whitelist pattern?
- Pattern
Relativity - Is the pattern matches anywhere or only relative to a directory?
- Source
- Do we get this pattern from a file (.gitignore, .xvcignore, …) or specify it directly in code?
Traits§
- Hash
- A hashable type.
Functions§
- build_
pattern_ list - Build a list of patterns from a list of strings
Type Aliases§
- Recommended
Watcher - The recommended
Watcherimplementation for the current platform
Derive Macros§
- Hash
- Derive macro generating an impl of the trait
Hash.