reflexo/vector/ir/
html.rs1use super::preludes::*;
2
3#[derive(Debug, Clone, Hash, PartialEq, Eq)]
5#[cfg_attr(feature = "rkyv", derive(Archive, rDeser, rSer))]
6#[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
7pub struct SizedRawHtmlItem {
8 pub html: ImmutStr,
10 pub size: Size,
12}
13
14#[derive(Debug, Clone, Hash, PartialEq, Eq)]
16#[cfg_attr(feature = "rkyv", derive(Archive, rDeser, rSer))]
17#[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
18pub struct HtmlItem {
19 pub tag: ImmutStr,
21 pub attrs: Vec<(ImmutStr, ImmutStr)>,
23 pub children: Vec<HtmlChildren>,
25}
26
27#[derive(Debug, Clone, Hash, PartialEq, Eq)]
29#[cfg_attr(feature = "rkyv", derive(Archive, rDeser, rSer))]
30#[cfg_attr(feature = "rkyv-validation", archive(check_bytes))]
31pub enum HtmlChildren {
32 Item(Fingerprint),
34 Text(ImmutStr),
36}