euv-core 0.18.21

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

/// Trait for types that can be converted into a reactive text `VirtualNode`.
///
/// Signals implement this to produce a text node that auto-updates.
pub trait AsReactiveText {
    /// Converts this value into a `VirtualNode::Text` with reactive signal binding.
    ///
    /// # Returns
    ///
    /// - `VirtualNode` - A `VirtualNode` value.
    fn as_reactive_text(&self) -> VirtualNode;
}