Enum globset::Error [] [src]

pub enum Error {
    InvalidRecursive,
    UnclosedClass,
    InvalidRange(charchar),
    UnopenedAlternates,
    UnclosedAlternates,
    NestedAlternates,
    Regex(String),
}

Represents an error that can occur when parsing a glob pattern.

Variants

Occurs when a use of ** is invalid. Namely, ** can only appear adjacent to a path separator, or the beginning/end of a glob.

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}}.

An error associated with parsing or compiling a regex.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Eq for Error
[src]

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter.