wdl_format/
config.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Formatting configuration.

mod builder;
mod indent;

pub use builder::Builder;
pub use indent::Indent;

/// Configuration for formatting.
#[derive(Clone, Copy, Debug, Default)]
pub struct Config {
    /// The number of characters to indent.
    indent: Indent,
}

impl Config {
    /// Gets the indent level of the configuration.
    pub fn indent(&self) -> Indent {
        self.indent
    }
}