Enum grep::Error [] [src]

pub enum Error {
    Regex(Error),
    LiteralNotAllowed(char),
    // some variants omitted
}

Error enumerates the list of possible error conditions when building or using a Grep line searcher.

Variants

An error from parsing or compiling a regex.

This error occurs when an illegal literal was found in the regex pattern. For example, if the line terminator is \n and the regex pattern is \w+\n\w+, then the presence of \n will cause this error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Error 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.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.