Enum globset::ErrorKind
[−]
[src]
pub enum ErrorKind { InvalidRecursive, IncompleteEscape, UnclosedClass, InvalidRange(char, char), UnopenedAlternates, UnclosedAlternates, NestedAlternates, Regex(String), }
The kind of error that can occur when parsing a glob pattern.
Variants
InvalidRecursive
Occurs when a use of **
is invalid. Namely, **
can only appear
adjacent to a path separator, or the beginning/end of a glob.
IncompleteEscape
Occurs when a backslash is not followed by a character.
UnclosedClass
Occurs when a character class (e.g., [abc]
) is not closed.
InvalidRange(char, char)
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.
UnopenedAlternates
Occurs when a }
is found without a matching {
.
UnclosedAlternates
Occurs when a {
is found without a matching }
.
NestedAlternates
Occurs when an alternating group is nested inside another alternating
group, e.g., {{a,b},{c,d}}
.
Regex(String)
An error associated with parsing or compiling a regex.
Trait Implementations
impl Clone for ErrorKind
[src]
fn clone(&self) -> ErrorKind
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ErrorKind
[src]
impl Eq for ErrorKind
[src]
impl PartialEq for ErrorKind
[src]
fn eq(&self, __arg_0: &ErrorKind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorKind) -> bool
[src]
This method tests for !=
.