parse-html 0.4.1

A simple Rust project to parse HTML.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[derive(Debug)]
pub enum ParserError {
    UnexpectedClosingTag(String, String),
}

impl std::fmt::Display for ParserError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        match self {
            ParserError::UnexpectedClosingTag(tag, context) => {
                write!(
                    f,
                    "Unexpected closing tag '{}' ... '{}'",
                    tag, context
                )
            }
        }
    }
}