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
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 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.
Auto Trait Implementations
impl !RefUnwindSafe for SsrNode
impl !UnwindSafe for SsrNode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.