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