piston_meta/meta_rules/indent_settings.rs
1/// Stores indent settings.
2#[derive(Clone, Copy)]
3pub struct IndentSettings {
4 /// The current indention.
5 pub indent: u32,
6 /// Whether to align indention to the first line.
7 pub align_first: bool,
8 /// The number of spaces corresponding to one tab.
9 pub tab_spaces: u8,
10}
11
12impl Default for IndentSettings {
13 fn default() -> IndentSettings {
14 IndentSettings {
15 indent: 0,
16 align_first: true,
17 tab_spaces: 4,
18 }
19 }
20}