Enum globset::Error
[−]
[src]
pub enum Error {
InvalidRecursive,
UnclosedClass,
InvalidRange(char, char),
UnopenedAlternates,
UnclosedAlternates,
NestedAlternates,
Regex(String),
}Represents an error that can occur when parsing a glob pattern.
Variants
InvalidRecursiveOccurs when a use of ** is invalid. Namely, ** can only appear
adjacent to a path separator, or the beginning/end of a glob.
UnclosedClassOccurs 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.
UnopenedAlternatesOccurs when a } is found without a matching {.
UnclosedAlternatesOccurs when a { is found without a matching }.
NestedAlternatesOccurs 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 Error[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Error[src]
impl Eq for Error[src]
impl PartialEq for Error[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=.
impl StdError for Error[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>1.0.0
The lower-level cause of this error, if any. Read more