tan_formatting/types.rs
1// #todo Find a better name than Dialect, maybe Flavor?
2// #todo Could we make dialects/formatting pluggable?
3
4/// The dialect of the source Tan. The formatter offer customized formatting for
5/// different Dialects.
6#[derive(Copy, Clone, PartialEq, Eq)]
7pub enum Dialect {
8 Code,
9 Data,
10 Html,
11 Css,
12}
13
14impl Default for Dialect {
15 fn default() -> Self {
16 Self::Code
17 }
18}