Enum globset::ErrorKind [−][src]
pub enum ErrorKind {
InvalidRecursive,
UnclosedClass,
InvalidRange(char, char),
UnopenedAlternates,
UnclosedAlternates,
NestedAlternates,
DanglingEscape,
Regex(String),
// some variants omitted
}The kind of error that can occur when parsing a glob pattern.
Variants
DEPRECATED.
This error used to occur for consistency with git’s glob specification,
but the specification now accepts all uses of **. When ** does not
appear adjacent to a path separator or at the beginning/end of a glob,
it is now treated as two consecutive * patterns. As such, this error
is no longer used.
Occurs when a character class (e.g., [abc]) is not closed.
Occurs when a range in a character (e.g., [a-z]) is invalid. For
example, if the range starts with a lexicographically larger character
than it ends with.
Occurs when a } is found without a matching {.
Occurs when a { is found without a matching }.
Occurs when an alternating group is nested inside another alternating
group, e.g., {{a,b},{c,d}}.
Occurs when an unescaped ’' is found at the end of a glob.
Regex(String)An error associated with parsing or compiling a regex.