Struct sycamore::generic_node::ssr_node::SsrNode[][src]

pub struct SsrNode(_);
Expand description

Rendering backend for Server Side Rendering, aka. SSR.

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

Implementations

Create a new raw text node.

Do not pass unsanitized user input to this function. When the node is rendered, no escaping will be performed which might lead to a XSS (Cross Site Scripting) attack.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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.

Removes an attribute on a node.

Sets the class attribute on a node. This should have the same outcome as calling set_attribute("class", value). For DomNode, this sets the className property directly which is about 2x faster (on Chrome). Read more

Sets a property on a node.

Removes a property on a node.

Appends a child to the node’s children.

Get the first child of the node.

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

Updates the inner html of the node. The html will not be parsed in non-browser environments. This means that accessing methods such as first_child will return None. Read more

Create a deep clone of the node.

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.