Module pattern

Module pattern 

Source
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 into Pattern<Glob> or Pattern<Regex>.

Enums§

MatchResult
Show whether a path matches to a glob rule
PathKind
Is the path only a directory, or could it be directory or file?
PatternEffect
Is this pattern a ignore or whitelist pattern?
PatternRelativity
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§

RecommendedWatcher
The recommended Watcher implementation for the current platform

Derive Macros§

Hash
Derive macro generating an impl of the trait Hash.