euv-core 0.22.0

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
use super::*;

/// Global typed signal slab. Single instance, lives for the program's
/// lifetime.
///
/// SAFETY: must only be accessed from the main thread (WASM single-threaded
/// context). The slab is append-only: slots are never recycled, so a stale
/// `Signal<T>` handle always resolves to its original (deactivated) slot.
pub(crate) static mut SIGNAL_SLAB: LazyLock<UnsafeCell<SignalSlab>> =
    LazyLock::new(|| UnsafeCell::new(SignalSlab::new()));