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>,
},
}
One of the target's attributes was changed.
Fields of Attribute
The Node
whose attribute changed.
The name of the changed attribute.
The namespace of the changed attribute.
The value of the changed attribute before the change.
The target's data was changed.
Fields of CharacterData
The CharacterData
node whose data changed.
The data of the target before the change.
The children of the target were changed.
Fields of ChildList
The Node
whose children changed.
The nodes which were inserted. Will be an empty NodeList
if no nodes were inserted.
The nodes which were removed. Will be an empty NodeList
if no nodes were removed.
The previous sibling of the inserted or removed nodes, or None
.
The next sibling of the inserted or removed nodes, or None
.
type Error = ConversionError
The type returned in the event of a conversion error.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static