Enum sauron::dom::PatchVariant
source · pub enum PatchVariant {
InsertBeforeNode {
nodes: Vec<DomNode>,
},
InsertAfterNode {
nodes: Vec<DomNode>,
},
AppendChildren {
children: Vec<DomNode>,
},
AddAttributes {
attrs: Vec<DomAttr>,
},
RemoveAttributes {
attrs: Vec<DomAttr>,
},
ReplaceNode {
replacement: Vec<DomNode>,
},
RemoveNode,
ClearChildren,
MoveBeforeNode {
for_moving: Vec<DomNode>,
},
MoveAfterNode {
for_moving: Vec<DomNode>,
},
}
Expand description
patch variant
Variants§
InsertBeforeNode
Insert nodes before the target node
InsertAfterNode
Insert nodes after the target node
AppendChildren
Append nodes into the target node
AddAttributes
Add attributes to the target node
RemoveAttributes
Remove attributes from the target node
ReplaceNode
Replace the target node with the replacement node
RemoveNode
Remove the target node
ClearChildren
Clear the children of the target node
MoveBeforeNode
Move the target node before the node specified in the path location
MoveAfterNode
Move the target node after the node specified in the path location
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchVariant
impl !RefUnwindSafe for PatchVariant
impl !Send for PatchVariant
impl !Sync for PatchVariant
impl Unpin for PatchVariant
impl !UnwindSafe for PatchVariant
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