14 lines
315 B
Rust
14 lines
315 B
Rust
#[derive(Debug)]
|
|
pub enum ErrorType {
|
|
NoSpaceBeforeAttr,
|
|
UnterminatedCssString,
|
|
UnterminatedJsString,
|
|
CharNotFound { need: u8, got: u8 },
|
|
MatchNotFound(&'static [u8]),
|
|
NotFound(&'static str),
|
|
UnexpectedChar(u8),
|
|
UnexpectedEnd,
|
|
}
|
|
|
|
pub type ProcessingResult<T> = Result<T, ErrorType>;
|