euv-macros 0.42.0

Zero-overhead procedural macros for the cross-platform euv UI framework, providing view!, style!, class!, tokens!, watch!, computed!, component, and euv_main!.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

/// Parsed `global_state!(...)` invocation supporting lookup (`Type`) or lazy initialization (`Type = init_expr`).
pub(crate) enum GlobalStateInput {
    /// Lookup an already-registered global state (`Option<Signal<T>>`).
    Lookup(Box<Type>),
    /// Lookup or lazily initialize global state (`Signal<T>`).
    Init {
        /// Global state type.
        ty: Box<Type>,
        /// Initial value expression.
        init: Box<Expr>,
    },
}