pub enum NodeRule {
Declarative {
tag: String,
void: bool,
attrs: Vec<(String, Vec<AttrPart>)>,
text: Option<Vec<AttrPart>>,
content: Content,
},
Callback {
content: Content,
},
}Expand description
One node rule: markup as data, or a deferral to the caller.
Variants§
Declarative
Render natively: the element, its attribute/text templates, and what goes inside it.
Fields
Callback
Emit a Segment::Deferred for the caller to fill in; content is
what renders into its children.
Auto Trait Implementations§
impl Freeze for NodeRule
impl RefUnwindSafe for NodeRule
impl Send for NodeRule
impl Sync for NodeRule
impl Unpin for NodeRule
impl UnsafeUnpin for NodeRule
impl UnwindSafe for NodeRule
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