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