oak_highlight/errors/
mod.rs1use oak_core::errors::OakError;
2use std::string::String;
3
4pub trait ParseErrorExtHighlightExt {
7 fn invalid_theme(message: impl Into<String>) -> OakError;
9
10 fn unsupported_format(format: impl Into<String>) -> OakError;
12
13 fn color_parse_error(color: impl Into<String>) -> OakError;
15}
16
17impl ParseErrorExtHighlightExt for OakError {
18 fn invalid_theme(_message: impl Into<String>) -> OakError {
19 todo!()
20 }
21
22 fn unsupported_format(_format: impl Into<String>) -> OakError {
23 todo!()
24 }
25
26 fn color_parse_error(_color: impl Into<String>) -> OakError {
27 todo!()
28 }
29}
30
31pub type HighlightResult<T> = Result<T, OakError>;