use crate::value::Value; use crate::vm::CallFrame; #[derive(Debug, Clone, PartialEq)] pub enum PanicMsg { NoLetMatch, NoFnMatch, NoMatch, Generic(String), } #[derive(Debug, Clone, PartialEq)] pub struct Panic { pub msg: PanicMsg, pub frame: CallFrame, pub scrutinee: Option, pub ip: usize, pub call_stack: Vec, }