Expand description
Wax provides opinionated and portable globs that can be matched against file paths and directory trees. Globs use a familiar syntax and support expressive features with semantics that emphasize component boundaries.
See the repository documentation for details about glob expressions and patterns.
Structs§
- Any
- Combinator that matches any of its component
Pattern
s. - Build
Error - Describes errors that occur when building a
Pattern
from a glob expression. - Candidate
Path - Path that can be matched against a
Pattern
. - Capturing
Token - Token that captures matched text in a glob expression.
- Filter
Tree - Iterator adaptor that filters
WalkEntry
s and controls the traversal of directory trees. - Glob
- Pattern that can be matched against paths and directory trees.
- Matched
Text - Text that has been matched by a
Pattern
and its captures. - Walk
- Iterator over files matching a
Glob
in a directory tree. - Walk
Behavior - Configuration for matching
Glob
s against directory trees. - Walk
Entry - Describes a file matching a
Glob
in a directory tree. - Walk
Error - Describes errors that occur when matching a
Glob
against a directory tree. - Walk
Negation - Negated combinator that efficiently filters
WalkEntry
s.
Enums§
- Filter
Target - Describes how files are read and discarded by
FilterTree
. - Glob
Error - General errors concerning
Pattern
s. - Link
Behavior - Configuration for interpreting symbolic links.
- Variance
- Variance of a
Pattern
.
Traits§
- Combine
- A glob expression representation that can be incorporated into a combinator.
- File
Iterator - An
Iterator
overWalkEntry
s that can filter directory trees. - Located
Error - Error associated with a
Span
within a glob expression. - Pattern
- A compiled glob expression that can be inspected and matched against paths.
Functions§
- any
- Constructs a combinator that matches if any of its input
Pattern
s match. - escape
- Escapes text as a literal glob expression.
- is_
contextual_ meta_ character - Returns
true
if the given character is a contextual meta-character. - is_
meta_ character - Returns
true
if the given character is a meta-character.
Type Aliases§
- Span
- Location and length of a token within a glob expression.