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.
6
7/// A generic value for the `flex-basis` property.
8#[derive(
9    Animate,
10    Clone,
11    ComputeSquaredDistance,
12    Copy,
13    Debug,
14    MallocSizeOf,
15    PartialEq,
16    SpecifiedValueInfo,
17    ToAnimatedValue,
18    ToAnimatedZero,
19    ToComputedValue,
20    ToCss,
21    ToResolvedValue,
22    ToShmem,
23    ToTyped,
24)]
25#[repr(C)]
26pub enum GenericFlexBasis<S> {
27    /// `content`
28    Content,
29    /// `<width>`
30    Size(S),
31}
32
33pub use self::GenericFlexBasis as FlexBasis;