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
Regex(Error)
An error from parsing or compiling a regex.
LiteralNotAllowed(char)
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]
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
[src]
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more