Enum hyperscan::error::HyperscanCompileError
source · pub enum HyperscanCompileError {
NonCompile(HyperscanRuntimeError),
Compile(CompileError),
NullByte(NulError),
}Available on crate feature
compiler only.Expand description
Wrapper for errors returned when parsing or compiling expressions.
Variants§
NonCompile(HyperscanRuntimeError)
non-compilation error: {0}
Compile(CompileError)
pattern compilation error: {0}
NullByte(NulError)
null byte in expression: {0}
Trait Implementations§
source§impl Debug for HyperscanCompileError
impl Debug for HyperscanCompileError
source§impl Display for HyperscanCompileError
impl Display for HyperscanCompileError
source§impl Error for HyperscanCompileError
impl Error for HyperscanCompileError
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 HyperscanCompileError
impl From<CompileError> for HyperscanCompileError
source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
source§impl From<HyperscanCompileError> for HyperscanError
impl From<HyperscanCompileError> for HyperscanError
source§fn from(source: HyperscanCompileError) -> Self
fn from(source: HyperscanCompileError) -> Self
Converts to this type from the input type.
source§impl From<HyperscanRuntimeError> for HyperscanCompileError
impl From<HyperscanRuntimeError> for HyperscanCompileError
source§fn from(source: HyperscanRuntimeError) -> Self
fn from(source: HyperscanRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HyperscanCompileError
impl Send for HyperscanCompileError
impl Sync for HyperscanCompileError
impl Unpin for HyperscanCompileError
impl UnwindSafe for HyperscanCompileError
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