style/values/generics/flex.rs
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5//! Generic types for CSS values related to flexbox.
6use crate::derives::*;
7
8/// A generic value for the `flex-basis` property.
9#[derive(
10 Animate,
11 Clone,
12 ComputeSquaredDistance,
13 Copy,
14 Debug,
15 MallocSizeOf,
16 PartialEq,
17 SpecifiedValueInfo,
18 ToAnimatedValue,
19 ToAnimatedZero,
20 ToComputedValue,
21 ToCss,
22 ToResolvedValue,
23 ToShmem,
24 ToTyped,
25)]
26#[repr(C)]
27pub enum GenericFlexBasis<S> {
28 /// `content`
29 Content,
30 /// `<width>`
31 Size(S),
32}
33
34pub use self::GenericFlexBasis as FlexBasis;