style/values/generics/
column.rs1use crate::derives::*;
7
8#[derive(
10 Animate,
11 Clone,
12 ComputeSquaredDistance,
13 Copy,
14 Debug,
15 MallocSizeOf,
16 Parse,
17 PartialEq,
18 SpecifiedValueInfo,
19 ToAnimatedValue,
20 ToAnimatedZero,
21 ToComputedValue,
22 ToCss,
23 ToResolvedValue,
24 ToShmem,
25 ToTyped,
26)]
27#[repr(u8)]
28pub enum GenericColumnCount<PositiveInteger> {
29 Integer(PositiveInteger),
31 #[animation(error)]
33 Auto,
34}
35
36pub use self::GenericColumnCount as ColumnCount;
37impl<I> ColumnCount<I> {
38 #[inline]
40 pub fn is_auto(self) -> bool {
41 matches!(self, ColumnCount::Auto)
42 }
43}