Function dasherize

Source
pub fn dasherize<S: AsRef<str>>(word: S) -> String