use std::fmt;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Severity {
Error,
Warning,
Info,
}
pub trait EngineDiagnostic: fmt::Debug {
fn code(&self) -> &'static str;
fn severity(&self) -> Severity;
fn context(&self) -> Vec<(&'static str, String)> {
Vec::new()
}
}