html_filter/lib.rs
1#![doc = include_str!("../README.md")]
2
3mod errors;
4mod filter;
5mod parse;
6mod types;
7
8pub use crate::filter::types::Filter;
9pub use crate::types::html::Html;
10pub use crate::types::tag::{Attribute, Tag};
11
12/// A const equivalent of the [`Option::unwrap_or`] method.
13const fn unwrap_or(opt: Option<bool>, default: bool) -> bool {
14 match opt {
15 Some(val) => val,
16 None => default,
17 }
18}