pub enum MutationRecord {
Attribute {
target: Node,
name: String,
namespace: Option<String>,
old_value: Option<String>,
},
CharacterData {
target: Node,
old_data: Option<String>,
},
ChildList {
target: Node,
inserted_nodes: NodeList,
removed_nodes: NodeList,
previous_sibling: Option<Node>,
next_sibling: Option<Node>,
},
}Expand description
Contains information about an individual change to the DOM.
It is passed to the MutationObserver’s callback.
Variants§
Attribute
One of the target’s attributes was changed.
Fields
CharacterData
The target’s data was changed.
Fields
ChildList
The children of the target were changed.
Trait Implementations§
Source§impl Clone for MutationRecord
impl Clone for MutationRecord
Source§fn clone(&self) -> MutationRecord
fn clone(&self) -> MutationRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MutationRecord
impl Debug for MutationRecord
Auto Trait Implementations§
impl Freeze for MutationRecord
impl RefUnwindSafe for MutationRecord
impl Send for MutationRecord
impl Sync for MutationRecord
impl Unpin for MutationRecord
impl UnwindSafe for MutationRecord
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