Enum sauron_core::dom::PatchVariant
source · pub enum PatchVariant<MSG> {
InsertBeforeNode {
nodes: Vec<CreatedNode>,
},
InsertAfterNode {
nodes: Vec<CreatedNode>,
},
AppendChildren {
children: Vec<CreatedNode>,
},
AddAttributes {
attrs: Vec<Attribute<MSG>>,
},
RemoveAttributes {
attrs: Vec<Attribute<MSG>>,
},
ReplaceNode {
replacement: Vec<CreatedNode>,
},
RemoveNode,
}
Expand description
patch variant
Variants§
InsertBeforeNode
Fields
§
nodes: Vec<CreatedNode>
nodes to be inserted before the target node
Insert nodes before the target node
InsertAfterNode
Fields
§
nodes: Vec<CreatedNode>
the nodes to be inserted after the target node
Insert nodes after the target node
AppendChildren
Fields
§
children: Vec<CreatedNode>
the children nodes to be appended into the target node
Append nodes into the target node
AddAttributes
Add attributes to the target node
RemoveAttributes
Remove attributes from the target node
ReplaceNode
Fields
§
replacement: Vec<CreatedNode>
the replacement node
Replace the target node with the replacement node
RemoveNode
Remove the target node
Auto Trait Implementations§
impl<MSG> !RefUnwindSafe for PatchVariant<MSG>
impl<MSG> !Send for PatchVariant<MSG>
impl<MSG> !Sync for PatchVariant<MSG>
impl<MSG> Unpin for PatchVariant<MSG>
impl<MSG> !UnwindSafe for PatchVariant<MSG>
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