euv-core 0.21.2

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

/// A single slab slot.
///
/// Free slots form a singly-linked free list: `next` is the index of the
/// next free slot, or `usize::MAX` to terminate. The `free_head` field of
/// [`SignalSlab`] points to the first free slot (or `usize::MAX` when no
/// free slots exist, in which case a new slot is pushed onto the
/// underlying `Vec`).
pub(crate) enum SignalSlot {
    /// Slot is currently free; `next` indexes the following free entry.
    Free { next: usize },
    /// Slot holds a live signal inner.
    Occupied(Box<dyn AnySignalInner>),
}