1 2 3 4 5 6 7 8 9 10
use thiserror::Error; #[derive(Debug, PartialEq, Eq, Clone, Error)] pub enum ParserError { #[error("{0}")] NodeError(String), #[error("Incomplete parser output")] Incomplete, }