blob: 118c10621551609f84a05963591e573f7b2ef118 (
plain) (
tree)
|
|
use std::fmt::Display;
#[derive(Debug)]
pub enum Error {
TypeError {
expected: &'static str,
actual: &'static str,
},
}
impl Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
writeln!(f, "{:?}", self)
}
}
pub type EvalResult<T> = Result<T, Error>;
|