case_style 0.2.1

Converts from and to different case styles
Documentation
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: '_' }
    }
}