1 2 3 4 5 6 7 8 9
#[derive(Debug)] pub enum CarbonError { ThemeNotFound(String), SyntaxNotFound(String), } pub type CarbonResult<T> = Result<T, CarbonError>; impl CarbonError {}