2019-12-25 04:44:51 -05:00
|
|
|
#[derive(Debug)]
|
2019-12-25 07:29:18 -05:00
|
|
|
pub enum ErrorType {
|
2019-12-25 21:47:18 -05:00
|
|
|
NoSpaceBeforeAttr,
|
|
|
|
UnterminatedCssString,
|
|
|
|
UnterminatedJsString,
|
2019-12-25 07:29:18 -05:00
|
|
|
CharNotFound { need: u8, got: u8 },
|
|
|
|
MatchNotFound(&'static [u8]),
|
|
|
|
NotFound(&'static str),
|
|
|
|
UnexpectedChar(u8),
|
2019-12-23 06:48:41 -05:00
|
|
|
UnexpectedEnd,
|
|
|
|
}
|
|
|
|
|
2019-12-25 21:47:18 -05:00
|
|
|
pub type ProcessingResult<T> = Result<T, ErrorType>;
|