Module xvc_walker::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§

Structs§

  • Glob represents a glob pattern matcher with support for multi-pattern matching.
  • 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§

  • 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§

Type Aliases§

Derive Macros§

  • Derive macro generating an impl of the trait Hash.