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)]
28#[typed(todo_derive_fields)]
29pub enum GenericColumnCount<PositiveInteger> {
30 Integer(PositiveInteger),
32 #[animation(error)]
34 Auto,
35}
36
37pub use self::GenericColumnCount as ColumnCount;
38impl<I> ColumnCount<I> {
39 #[inline]
41 pub fn is_auto(self) -> bool {
42 matches!(self, ColumnCount::Auto)
43 }
44}