pub enum DomMutation {
ChildList {
target: NodeId,
added: Vec<NodeId>,
removed: Vec<NodeId>,
previous_sibling: Option<NodeId>,
next_sibling: Option<NodeId>,
},
Attributes {
target: NodeId,
name: String,
old_value: Option<String>,
},
CharacterData {
target: NodeId,
old_value: String,
},
}Expand description
One change, in the shape a MutationRecord needs.
Variants§
ChildList
Children were added to or removed from target.
Fields
Attributes
An attribute of target was set or removed. old_value is None when
the attribute did not exist before.
CharacterData
The text of a text or comment node changed.
Trait Implementations§
Source§impl Clone for DomMutation
impl Clone for DomMutation
Source§impl Debug for DomMutation
impl Debug for DomMutation
impl Eq for DomMutation
Source§impl PartialEq for DomMutation
impl PartialEq for DomMutation
impl StructuralPartialEq for DomMutation
Auto Trait Implementations§
impl Freeze for DomMutation
impl RefUnwindSafe for DomMutation
impl Send for DomMutation
impl Sync for DomMutation
impl Unpin for DomMutation
impl UnsafeUnpin for DomMutation
impl UnwindSafe for DomMutation
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert