pub enum RE2Error {
Runtime(RE2ErrorCode),
Compile(CompileError),
Rewrite(RewriteError),
Set(SetError),
}Expand description
Top-level catch-all error for all types of failures in this crate.
Variants§
Runtime(RE2ErrorCode)
re2 runtime error: {0}
Compile(CompileError)
pattern compilation error: {0}
Rewrite(RewriteError)
error rewriting string: {0}
Set(SetError)
set error: {0}
Trait Implementations§
source§impl Error for RE2Error
impl Error for RE2Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CompileError> for RE2Error
impl From<CompileError> for RE2Error
source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
source§impl From<RE2ErrorCode> for RE2Error
impl From<RE2ErrorCode> for RE2Error
source§fn from(source: RE2ErrorCode) -> Self
fn from(source: RE2ErrorCode) -> Self
Converts to this type from the input type.
source§impl From<RewriteError> for RE2Error
impl From<RewriteError> for RE2Error
source§fn from(source: RewriteError) -> Self
fn from(source: RewriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RE2Error
impl Send for RE2Error
impl Sync for RE2Error
impl Unpin for RE2Error
impl UnwindSafe for RE2Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more