wildcard-glob 11.2.0

Zero-dependency, zero-allocation compiled wildcard and path glob pattern matcher supporting *, **, ?, character classes, brace alternation, and multi-pattern GlobSet.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Error returned when compiling an invalid glob pattern.
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
pub enum GlobError {
    /// Character class `[...]` was opened without a matching `]`.
    UnclosedClass,
    /// Brace alternation `{...}` was opened without a matching `}`.
    UnclosedBrace,
    /// Unexpected closing `}` without an open `{`.
    UnmatchedCloseBrace,
    /// Trailing `\` escape with no following character.
    TrailingEscape,
    /// Character class range `start-end` had `start > end`.
    InvalidRange,
    /// Brace expansion generated more alternative branches than the safety cap.
    ExpansionLimitExceeded,
}