polished_css/utils/
mod.rs1pub const PROPERTY_VALUE_SUFFIX: &str = "Value";
4pub const DATA_TYPE_OPTIONAL_SUFFIX: &str = "DataType";
5pub const DATA_TYPE_TRAIT_SUFFIX: &str = "Storage";
6
7pub trait UnitDataTypeContainer<T: UnitDataType<Self>>: Sized {}
8
9pub trait UnitDataType<Container: UnitDataTypeContainer<Self>>: Sized {}
10
11#[derive(Clone, Debug, PartialEq)]
12pub struct Nothing;
13impl std::fmt::Display for Nothing {
14 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
15 write!(f, "")
16 }
17}
18impl UnitDataType<Nothing> for Nothing {}
19impl<T> UnitDataTypeContainer<T> for Nothing where
20 T: Clone + std::fmt::Debug + std::fmt::Display + PartialEq + UnitDataType<Self>
21{
22}