Enum globset::ErrorKind [] [src]

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

The kind of 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 ErrorKind
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorKind
[src]

[src]

Formats the value using the given formatter.

impl Eq for ErrorKind
[src]

impl PartialEq for ErrorKind
[src]

[src]

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

[src]

This method tests for !=.

impl Display for ErrorKind
[src]

[src]

Formats the value using the given formatter. Read more