Struct regex_syntax::Error
[−]
[src]
pub struct Error { // some fields omitted }
A parse error.
This includes details about the specific type of error and a rough approximation of where it occurred.
Methods
impl Error
fn position(&self) -> usize
Returns an approximate character offset at which the error occurred.
The character offset may be equal to the number of characters in the string, in which case it should be interpreted as pointing to the end of the regex.
fn kind(&self) -> &ErrorKind
Returns the type of the regex parse error.