pub enum TemplateRawTree {
Empty,
Sequence(&'static [&'static TemplateRawTree]),
Element {
tag: &'static str,
namespace: Option<&'static str>,
attrs: &'static TemplateRawTree,
children: &'static TemplateRawTree,
},
StaticAttr {
name: &'static str,
value: &'static str,
namespace: Option<&'static str>,
},
DynamicAttr,
StaticText(&'static str),
DynamicNode,
}Expand description
A compact static tree of template structure.
Variants§
Empty
No template structure.
Sequence(&'static [&'static TemplateRawTree])
A sequence of template trees.
Element
An element with static attributes and children.
Fields
§
attrs: &'static TemplateRawTreeStatic and dynamic attributes.
§
children: &'static TemplateRawTreeChild nodes.
StaticAttr
A static attribute.
Fields
DynamicAttr
A dynamic attribute slot.
StaticText(&'static str)
A static text node.
DynamicNode
A dynamic node slot.
Trait Implementations§
Source§impl Clone for TemplateRawTree
impl Clone for TemplateRawTree
impl Copy for TemplateRawTree
impl Eq for TemplateRawTree
Source§impl Hash for TemplateRawTree
impl Hash for TemplateRawTree
Source§impl PartialEq for TemplateRawTree
impl PartialEq for TemplateRawTree
impl StructuralPartialEq for TemplateRawTree
Auto Trait Implementations§
impl Freeze for TemplateRawTree
impl RefUnwindSafe for TemplateRawTree
impl Send for TemplateRawTree
impl Sync for TemplateRawTree
impl Unpin for TemplateRawTree
impl UnsafeUnpin for TemplateRawTree
impl UnwindSafe for TemplateRawTree
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