pub struct ChimeraInnerCompileError {
pub message: String,
pub expression: Option<ExpressionIndex>,
}
Available on crate features
chimera
and compiler
only.Expand description
Error details returned by the pattern compiler.
This is returned by the compile calls
(ChimeraDb::compile()
and ChimeraDb::compile_multi()
) on
failure. The caller may inspect the values returned in this type to
determine the cause of failure.
Fields§
§message: String
A human-readable error message describing the error.
Common errors are the same as for the base vectorscan library’s
super::CompileError::message
, except that PCRE constructs are fully
supported and will not cause errors.
expression: Option<ExpressionIndex>
The zero-based number of the expression that caused the error (if this
can be determined). This value’s behavior is the same as for the base
vectorscan library’s super::CompileError::expression
.
Trait Implementations§
Source§impl Debug for ChimeraInnerCompileError
impl Debug for ChimeraInnerCompileError
Source§impl Display for ChimeraInnerCompileError
impl Display for ChimeraInnerCompileError
Source§impl Error for ChimeraInnerCompileError
impl Error for ChimeraInnerCompileError
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
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<ChimeraInnerCompileError> for ChimeraCompileError
impl From<ChimeraInnerCompileError> for ChimeraCompileError
Source§fn from(source: ChimeraInnerCompileError) -> Self
fn from(source: ChimeraInnerCompileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChimeraInnerCompileError
impl RefUnwindSafe for ChimeraInnerCompileError
impl Send for ChimeraInnerCompileError
impl Sync for ChimeraInnerCompileError
impl Unpin for ChimeraInnerCompileError
impl UnwindSafe for ChimeraInnerCompileError
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