pub enum Patch {
Replace {
path: Vec<usize>,
node: VNode,
},
UpdateText {
path: Vec<usize>,
content: String,
},
SetAttribute {
path: Vec<usize>,
key: String,
value: String,
},
Append {
path: Vec<usize>,
node: VNode,
},
Remove {
path: Vec<usize>,
},
}Expand description
A patch to apply to the DOM
Variants§
Replace
Replace a node
UpdateText
Update text content
SetAttribute
Set an attribute
Append
Append a child
Remove
Remove a node
Trait Implementations§
impl StructuralPartialEq for Patch
Auto Trait Implementations§
impl Freeze for Patch
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
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