swc_html_codegen/
list.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![allow(non_upper_case_globals)]
use bitflags::bitflags;

bitflags! {
    #[derive(PartialEq, Eq, Copy, Clone)]
    pub struct ListFormat: u16 {
        const None = 0;

        // Line separators
        /// Prints the list on a single line (default).
        const SingleLine = 0;
        /// Prints the list on multiple lines.
        const MultiLine = 1 << 0;
        /// Prints the list using line preservation if possible.
        const PreserveLines = 1 << 1;
        const LinesMask = Self::MultiLine.bits() | Self::PreserveLines.bits();

        // Delimiters
        const NotDelimited = 0;
        const SpaceDelimited = 1 << 2;
        const DelimitersMask = Self::SpaceDelimited.bits();
    }
}