typocase 0.1.0

CLI for translating string into typography conventions.
Documentation
#[allow(dead_code)]
pub enum SpecChars {
    Dash,
    Dot,
    Slash,
    UnderScore,
    WhiteSpace,
}


impl SpecChars {
    pub fn value(&self) -> char {
        match self {
            SpecChars::Dash => '-',
            SpecChars::Dot => '.',
            SpecChars::Slash => '/',
            SpecChars::UnderScore => '_',
            SpecChars::WhiteSpace => ' '
        }
    }

    pub fn to_string(&self) -> String {
        return self.value().to_string();
    }
}