lazy_template/enclosed/
config.rs

1#[derive(Debug, Clone, Copy)]
2pub struct ParserConfig {
3    pub open_bracket: char,
4    pub close_bracket: char,
5}
6
7impl ParserConfig {
8    pub fn curly_braces() -> Self {
9        ParserConfig {
10            open_bracket: '{',
11            close_bracket: '}',
12        }
13    }
14}
15
16#[derive(Debug, Clone, Copy)]
17pub struct ComponentParserInput<'a> {
18    pub text: &'a str,
19    pub config: ParserConfig,
20}