Skip to main content

euv_core/reactive/memo/
struct.rs

1use super::*;
2
3/// Zero-overhead `Copy` handle to a lazy, glitch-free memoized reactive computation.
4#[derive(Debug)]
5pub struct Memo<T>
6where
7    T: 'static,
8{
9    /// Backing arena identifier for this memo.
10    pub(crate) id: MemoId,
11    /// Type marker preserving static type safety.
12    pub(crate) marker: PhantomData<fn() -> T>,
13}