euv-core 0.55.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
1
2
3
4
5
6
7
8
9
10
11
use super::*;

/// Shared immutable backing storage for a read-only `EuvPakMapping`.
#[derive(Clone, Debug)]
pub(crate) enum EuvPakBacking {
    /// Heap-backed immutable byte buffer (used by `from_bytes`, empty files, and `wasm32`).
    Owned(Arc<Vec<u8>>),
    /// Active OS virtual memory mapping (`mmap` on Unix, `MapViewOfFile` on Windows) unmapped on drop.
    #[cfg(any(unix, windows))]
    OsMapped(Arc<EuvPakOsMap>),
}