swc_xml_codegen/
list.rs

1#![allow(non_upper_case_globals)]
2use bitflags::bitflags;
3
4bitflags! {
5    #[derive(PartialEq, Eq, Clone, Copy)]
6    pub struct ListFormat: u16 {
7        const None = 0;
8
9        // Line separators
10        /// Prints the list on a single line (default).
11        const SingleLine = 0;
12        /// Prints the list on multiple lines.
13        const MultiLine = 1 << 0;
14        /// Prints the list using line preservation if possible.
15        const PreserveLines = 1 << 1;
16        const LinesMask = Self::MultiLine.bits() | Self::PreserveLines.bits();
17
18        // Delimiters
19        const NotDelimited = 0;
20        const SpaceDelimited = 1 << 2;
21        const DelimitersMask = Self::SpaceDelimited.bits();
22    }
23}