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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

/// Type-directed property application trait enabling concise newline-separated enum/value shorthand inside `style!`.
pub trait StyleApply {
    /// Applies this strongly-typed style property directly onto `style`.
    ///
    /// # Arguments
    ///
    /// - `Self` - Typed style property value.
    /// - `Style` - Target style accumulator.
    ///
    /// # Returns
    ///
    /// - `Style` - Updated style with the property applied.
    #[must_use]
    fn apply_to(self, style: Style) -> Style;
}