2019-12-25 04:44:51 -05:00
|
|
|
#[derive(Debug)]
|
2019-12-23 06:48:41 -05:00
|
|
|
pub enum HbErr {
|
|
|
|
ExpectedCharNotFound { expected: u8, got: u8 },
|
|
|
|
ExpectedMatchNotFound(&'static [u8]),
|
|
|
|
ExpectedNotFound(&'static str),
|
|
|
|
NoSpaceBeforeAttr,
|
|
|
|
UnclosedTag,
|
|
|
|
UnexpectedCharFound(u8),
|
|
|
|
UnexpectedEnd,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub type HbRes<T> = Result<T, HbErr>;
|