Enum augdom::Node [−][src]
Expand description
A Node
in the augmented DOM.
Variants
Concrete(Node)
A handle to a concrete DOM node running in the browser.
Tuple Fields of Concrete
0: Node
A handle to a “virtual” DOM node, emulating the web in memory. While this implementation lacks many features, it can run on any target that Rust supports.
Implementations
Returns a reference to a virtual node, panics if this is a concrete node.
Returns a reference to a concrete DOM node, panics if this is a virtual node.
Trait Implementations
type MutationRecord = MutationRecord
type MutationRecord = MutationRecord
The type returned in batches by Dom::Observer
.
type Observer = MutationObserver
type Observer = MutationObserver
The type returned by observe
.
Write this value as XML via the provided writer. Consider using Dom::outer_html or Dom::pretty_outer_html unless you need the performance. Read more
Returns the first child of this node.
Adds a new child to the end of this node’s children.
Returns the next child of this node’s parent after this node itself.
Removes the provided child from this node.
Replaces the provided child of this node with a new one.
Get an attribute from this DOM node.
Set an attribute on this DOM node.
Ensure the provided attribute has been removed from this DOM node.
Represents the “rendered” text content of a node and its descendants. It approximates the text the user would get if they highlighted the contents of the element with the cursor and then copied it to the clipboard. Read more
Synchronously invokes the affected EventListeners in the appropriate
order. The normal event processing rules (including the capturing
and optional bubbling phase) also apply to events dispatched
manually with dispatchEvent()
. Read more
Return a stream of mutations related to the subtree under this node.
Returns a string of serialized XML without newlines or indentation.
Returns a string of “prettified” serialized XML with the provided indentation. Read more
Performs the conversion.
“Type” the provided text followed by the <Enter>
key.
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more