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; }