cranpose-core 0.0.59

Core runtime for a Jetpack Compose inspired UI framework in Rust
Documentation
//! Slot storage helper types used by [`crate::SlotTable`].
//!
//! The slot table is the single storage implementation in this crate. These
//! helpers keep the call sites readable without reintroducing an abstraction
//! layer around that single concrete type.

use crate::AnchorId;
use crate::RecomposeScope;

/// Opaque handle to a group in the slot storage.
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
pub struct GroupId(pub(crate) usize);

/// Result of starting a scoped group.
pub struct StartScopedGroup<G> {
    pub group: G,
    pub anchor: AnchorId,
    pub scope: RecomposeScope,
    /// True if preserved structure was reused and children must recompose.
    pub requires_recompose: bool,
}