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

The approximate character index of where the error occurred.

msg

A message describing the error.

Trait Implementations

impl String for Error

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

Derived Implementations

impl Debug for Error

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