Crate wax

Source
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.
BuildError
Describes errors that occur when building a Pattern from a glob expression.
CandidatePath
Path that can be matched against a Pattern.
CapturingToken
Token that captures matched text in a glob expression.
FilterTree
Iterator adaptor that filters WalkEntrys and controls the traversal of directory trees.
Glob
Pattern that can be matched against paths and directory trees.
MatchedText
Text that has been matched by a Pattern and its captures.
Walk
Iterator over files matching a Glob in a directory tree.
WalkBehavior
Configuration for matching Globs against directory trees.
WalkEntry
Describes a file matching a Glob in a directory tree.
WalkError
Describes errors that occur when matching a Glob against a directory tree.
WalkNegation
Negated combinator that efficiently filters WalkEntrys.

Enums§

FilterTarget
Describes how files are read and discarded by FilterTree.
GlobError
General errors concerning Patterns.
LinkBehavior
Configuration for interpreting symbolic links.
Variance
Variance of a Pattern.

Traits§

Combine
A glob expression representation that can be incorporated into a combinator.
FileIterator
An Iterator over WalkEntrys that can filter directory trees.
LocatedError
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 Patterns 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.