1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
use crate::traits::DelimiterSpaced; #[derive(Debug)] pub struct ConstantCase { spacing_char: char, } impl DelimiterSpaced for ConstantCase { fn spacing_char(&self) -> char { self.spacing_char } fn do_uppercase(&self) -> bool { true } } impl Default for ConstantCase { fn default() -> ConstantCase { ConstantCase { spacing_char: '_' } } }