1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
use crate::*;
/// Trait for types that can be converted into a reactive string value.
///
/// This allows both static strings and signals to be used interchangeably
/// in HTML attributes.
/// Trait for converting a value into a string for reactive attribute updates.
///
/// Used by the `html!` macro when an attribute value contains an `if` condition.
/// The result is stored in a `Signal<String>` that re-evaluates whenever any
/// signal changes — mirroring the DOM-level `DynamicNode` mechanism.
///
/// Implementations are provided for `String`, `&str`, `Css`, `bool`,
/// numeric types, and `Signal<T>` (which resolves the signal first).
/// Trait for types that can be converted into a callback attribute value.
///
/// This allows closures to be passed as custom component props.
pub
/// Trait for converting event-like values into `Option<NativeEventHandler>`.
///
/// Used by the `html!` macro when generating typed props for component event fields.
/// Supports closures (`FnMut(Event) + 'static`), `NativeEventHandler`, and
/// `Option<NativeEventHandler>` as input types, converting them all into
/// `Option<NativeEventHandler>` for assignment to typed Props struct fields.