euv-core 0.3.15

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 crate::*;

/// A wrapper around `Option<NativeEventHandler>` that enables `From<usize>` conversions.
///
/// Used as the value type in the handler registry. Allocated via `Box::leak`
/// and lives for the remainder of the program.
pub(crate) struct HandlerSlot {
    /// The optional event handler stored in this slot.
    pub(crate) handler: Option<NativeEventHandler>,
}