case_style 0.2.1

Converts from and to different case styles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::traits::DelimiterSpaced;

#[derive(Debug)]
pub struct SnakeCase {
    spacing_char: char,
}

impl DelimiterSpaced for SnakeCase {
    fn spacing_char(&self) -> char {
        self.spacing_char
    }
}

impl Default for SnakeCase {
    fn default() -> SnakeCase {
        SnakeCase { spacing_char: '_' }
    }
}