pub type RegexError = Error;
Expand description
An error that occurred during parsing or compiling a regular expression.
Aliased Type§
enum RegexError {
Syntax(String),
CompiledTooBig(usize),
}
Variants§
Syntax(String)
A syntax error.
CompiledTooBig(usize)
The compiled program exceeded the set size limit. The argument is the size limit imposed.
Trait Implementations
§impl Error for Error
impl Error for Error
§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more