html_parser 0.7.0

A simple and general purpose html/xhtml parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error as ThisError;

#[derive(ThisError, Debug)]
pub enum Error {
    #[error("{0}")]
    Parsing(String),
    #[error("{0}")]
    Cli(String),
    #[error("{0}")]
    IO(#[from] std::io::Error),
    #[error("{0}")]
    Serde(#[from] serde_json::Error),
}

pub type Result<T> = std::result::Result<T, Error>;