replace_html 0.1.0

A simple, minimal crate to replace HTML in wasm32 environments.
Documentation
1
2
3
4
5
6
7
8
9
#[derive(Debug, thiserror::Error, PartialEq, Eq, Clone)]
pub enum ReplaceHtmlError {
    #[error("The element was not found: '{0}'")]
    ElementNotFound(String),
    #[error("HTML could not be replaced because the environment is headless.")]
    HeadlessEnvironment,
    #[error("Replacing HTML only works on `wasm32` architecture.")]
    TargetNotSupported,
}