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
Patterns. - Build
Error - Describes errors that occur when building a
Patternfrom 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
WalkEntrys 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
Patternand its captures. - Walk
- Iterator over files matching a
Globin a directory tree. - Walk
Behavior - Configuration for matching
Globs against directory trees. - Walk
Entry - Describes a file matching a
Globin a directory tree. - Walk
Error - Describes errors that occur when matching a
Globagainst a directory tree. - Walk
Negation - Negated combinator that efficiently filters
WalkEntrys.
Enums§
- Filter
Target - Describes how files are read and discarded by
FilterTree. - Glob
Error - General errors concerning
Patterns. - 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
IteratoroverWalkEntrys that can filter directory trees. - Located
Error - Error associated with a
Spanwithin 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
Patterns match. - escape
- Escapes text as a literal glob expression.
- is_
contextual_ meta_ character - Returns
trueif the given character is a contextual meta-character. - is_
meta_ character - Returns
trueif the given character is a meta-character.
Type Aliases§
- Span
- Location and length of a token within a glob expression.