pub trait ParseErrorExtHighlightExt {
// Required methods
fn invalid_theme(message: impl Into<String>) -> OakError;
fn unsupported_format(format: impl Into<String>) -> OakError;
fn color_parse_error(color: impl Into<String>) -> OakError;
}Expand description
扩展 ParseError 以支持高亮相关的错误 通过为 ParseError 实现扩展方法来添加高亮特定的错误类型
Required Methods§
Sourcefn invalid_theme(message: impl Into<String>) -> OakError
fn invalid_theme(message: impl Into<String>) -> OakError
创建无效主题错误
Sourcefn unsupported_format(format: impl Into<String>) -> OakError
fn unsupported_format(format: impl Into<String>) -> OakError
创建不支持格式错误
Sourcefn color_parse_error(color: impl Into<String>) -> OakError
fn color_parse_error(color: impl Into<String>) -> OakError
创建颜色解析错误
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.