1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
    Appellation: string <module>
    Contrib: FL03 <jo3mccain@icloud.com>
*/

pub trait StringExt {
    /// Remove the first and last charecters of a string
    fn remove_fnl(&self) -> &str;
}

impl StringExt for str {
    fn remove_fnl(&self) -> &str {
        &self[1..self.len() - 1]
    }
}

pub trait StringFmt {
    fn snake_case(&self) -> String;

    fn title_case(&self) -> String;
}