Struct regex::Error [] [src]

pub struct Error {
    pub pos: usize,
    pub msg: String,
}

Error corresponds to something that can go wrong while parsing a regular expression.

(Once an expression is compiled, it is not possible to produce an error via searching, splitting or replacing.)

Fields

pos: usize

The approximate character index of where the error occurred.

msg: String

A message describing the error.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.