euv-core 0.46.0

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
use super::*;

/// Pure background migrator transforming component UI state snapshots across schema versions without side effects.
pub trait StateMigrator: Send + Sync {
    /// Migrates `snapshot` from `from_schema` to `to_schema` as a pure data transformation.
    ///
    /// # Arguments
    ///
    /// - `u32` - Source local UI state schema version.
    /// - `u32` - Target local UI state schema version.
    /// - `&ComponentUiStateSnapshot` - Immutable snapshot captured at revision `R`.
    ///
    /// # Returns
    ///
    /// - `Result<ComponentUiStateSnapshot, DynamicReleaseError>` - Migrated snapshot or typed failure.
    fn migrate(
        &self,
        from_schema: u32,
        to_schema: u32,
        snapshot: &ComponentUiStateSnapshot,
    ) -> Result<ComponentUiStateSnapshot, DynamicReleaseError>;
}