Enum moxie_dom::prelude::RawNode [−][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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Begin a subtree query. The returned value supports methods like
Finder::by_label_text
which create queries against this container’s
children. 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