Enum sauron_core::dom::PatchVariant
source · pub enum PatchVariant<MSG> {
InsertBeforeNode {
nodes: Vec<Node>,
},
InsertAfterNode {
nodes: Vec<Node>,
},
AppendChildren {
children: Vec<Node>,
},
AddAttributes {
attrs: Vec<Attribute<MSG>>,
},
RemoveAttributes {
attrs: Vec<Attribute<MSG>>,
},
ReplaceNode {
replacement: Vec<Node>,
},
RemoveNode,
}
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
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