Enum Op
pub enum Op {
Replace {
path: Vec<u32>,
html: Html,
},
SetText {
path: Vec<u32>,
text: String,
},
SetAttr {
path: Vec<u32>,
name: String,
value: String,
},
RemoveAttr {
path: Vec<u32>,
name: String,
},
Insert {
path: Vec<u32>,
index: u32,
html: Html,
},
Remove {
path: Vec<u32>,
index: u32,
},
Move {
path: Vec<u32>,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more