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 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§
- Show whether a path matches to a glob rule
- Is the path only a directory, or could it be directory or file?
- Is this pattern a ignore or whitelist pattern?
- Is the pattern matches anywhere or only relative to a directory?
- Do we get this pattern from a file (.gitignore, .xvcignore, …) or specify it directly in code?
Traits§
- A hashable type.
Functions§
- Build a list of patterns from a list of strings
Type Aliases§
- The recommended
Watcherimplementation for the current platform
Derive Macros§
- Derive macro generating an impl of the trait
Hash.