#[derive(UnitTrait)] { // Attributes available to this derive: #[unit] }
Creates a custom trait for CSS unit <name>Value
<name>Value
Quickly generates a trait with bounds and the “contstructor” method, to use on any data type that relies on this targetted unit.