euv_core/vdom/node/trait.rs
1use super::*;
2
3/// Trait for types that can be converted into a reactive text `VirtualNode`.
4///
5/// Signals implement this to produce a text node that auto-updates.
6pub trait AsReactiveText {
7 /// Converts this value into a `VirtualNode::Text` with reactive signal binding.
8 ///
9 /// # Returns
10 ///
11 /// - `VirtualNode` - A `VirtualNode` value.
12 fn as_reactive_text(&self) -> VirtualNode;
13}