Struct sycamore::generic_node::dom_node::DomNode[][src]

pub struct DomNode { /* fields omitted */ }
Expand description

Rendering backend for the DOM.

This API requires the following crate features to be activated: dom

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Prints outerHtml of Node.

Performs the conversion.

Create a new element node.

Create a new text node.

Create a marker (dummy) node. For DomNode, this is implemented by creating an empty comment node. This is used, for example, in Keyed and Indexed for scenarios where you want to push a new item to the end of the list. If the list is empty, a dummy node is needed to store the position of the component. Read more

Sets an attribute on a node.

Sets a property on a node.

Appends a child to the node’s children.

Insert a new child node to this node’s children. If reference_node is Some, the child will be inserted before the reference node. Else if None, the child will be inserted at the end. Read more

Remove a child node from this node’s children.

Replace a child node from this node’s children with a new child node.

Insert a new node before this node.

Returns the parent node, or None if detached.

Returns the next sibling, or None if this node is the last sibling.

Remove this node from the tree.

Add a EventHandler to the event name.

Update inner text of the node. If the node has elements, all the elements are replaced with a new text node. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.