pub enum Node {
El {
el: String,
attrs: BTreeMap<String, Attr>,
on: BTreeMap<String, String>,
children: Vec<Node>,
},
Text(Attr),
If {
cond: String,
then: Vec<Node>,
otherwise: Vec<Node>,
},
Each {
expr: String,
as_: String,
key: String,
body: Vec<Node>,
},
Component {
name: String,
props: BTreeMap<String, Attr>,
},
Slot {
name: String,
props: BTreeMap<String, Attr>,
},
Html(String),
}Expand description
One node of a compiled tree.
Variants§
El
Text(Attr)
If
Each
Component
Slot
Html(String)
UI-10: {@html expr} — the expression’s text as HTML, through the
sanitizer (crate::html).
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.