pub enum HostMutationOp {
SetAttribute {
name: String,
value: String,
},
RemoveAttribute {
name: String,
},
AppendChild {
tag: String,
class: Option<String>,
text: Option<String>,
},
RemoveLastChild,
}Expand description
What a HostMutation does to its target. The four shapes the T3
instrument needs: replace an attribute (style, class), drop one, grow
the subtree, shrink it.
Variants§
SetAttribute
Set or replace an attribute in the null namespace.
RemoveAttribute
Remove an attribute; absent is not an error.
AppendChild
Append one element child, optionally carrying a class and one text node.
RemoveLastChild
Remove the target’s last element child. A target with no element child is reported as a miss, not an error.
Trait Implementations§
Source§impl Clone for HostMutationOp
impl Clone for HostMutationOp
Source§impl Debug for HostMutationOp
impl Debug for HostMutationOp
impl Eq for HostMutationOp
Source§impl PartialEq for HostMutationOp
impl PartialEq for HostMutationOp
impl StructuralPartialEq for HostMutationOp
Auto Trait Implementations§
impl Freeze for HostMutationOp
impl RefUnwindSafe for HostMutationOp
impl Send for HostMutationOp
impl Sync for HostMutationOp
impl Unpin for HostMutationOp
impl UnsafeUnpin for HostMutationOp
impl UnwindSafe for HostMutationOp
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