pub enum Op {
Replace {
path: Path,
html: Html,
},
SetText {
path: Path,
text: String,
},
SetAttr {
path: Path,
name: String,
value: String,
},
RemoveAttr {
path: Path,
name: String,
},
Insert {
path: Path,
index: u32,
html: Html,
},
Remove {
path: Path,
index: u32,
},
Move {
path: Path,
from: u32,
to: u32,
},
}Variants§
Replace
Replace the node at path wholesale (tag or key changed).
SetText
SetAttr
RemoveAttr
Insert
Insert html as child index of the element at path.
Remove
Move
Move child from to to within the element at path; from > to always.
Implementations§
Trait Implementations§
impl Eq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
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