pub trait IntoNode {
// Required method
fn into_node(self) -> VirtualNode;
}Expand description
Trait for converting a value into a VirtualNode by consuming it.
Unlike AsNode which borrows &self, this trait takes ownership,
enabling closures to be wrapped into DynamicNode for reactive re-rendering.
Required Methods§
Sourcefn into_node(self) -> VirtualNode
fn into_node(self) -> VirtualNode
Converts this value into a VirtualNode by consuming it.
Implementations on Foreign Types§
Source§impl IntoNode for &str
Converts a &str into a text virtual node via IntoNode.
impl IntoNode for &str
Converts a &str into a text virtual node via IntoNode.
fn into_node(self) -> VirtualNode
Source§impl IntoNode for bool
Converts a bool into a text virtual node via IntoNode.
impl IntoNode for bool
Converts a bool into a text virtual node via IntoNode.
fn into_node(self) -> VirtualNode
Source§impl IntoNode for i32
Converts an i32 into a text virtual node via IntoNode.
impl IntoNode for i32
Converts an i32 into a text virtual node via IntoNode.
fn into_node(self) -> VirtualNode
Source§impl IntoNode for usize
Converts a usize into a text virtual node via IntoNode.
impl IntoNode for usize
Converts a usize into a text virtual node via IntoNode.
fn into_node(self) -> VirtualNode
Source§impl IntoNode for String
Converts a String into a text virtual node via IntoNode.
impl IntoNode for String
Converts a String into a text virtual node via IntoNode.
fn into_node(self) -> VirtualNode
Implementors§
impl IntoNode for VirtualNode
Converts a VirtualNode into itself via IntoNode.
impl<F> IntoNode for Fwhere
F: FnMut() -> VirtualNode + 'static,
Wraps a FnMut() -> VirtualNode closure into a DynamicNode via IntoNode.
This enables writing {move || html! { ... }} directly in HTML markup
without explicit DynamicNode construction.
impl<T> IntoNode for Signal<T>
Converts a signal into a reactive text virtual node via IntoNode.