Struct heck::AsShoutyKebabCase
source · pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T);
Expand description
This wrapper performs a kebab case conversion in fmt::Display
.
Example:
use heck::AsShoutyKebabCase;
let sentence = "We are going to inherit the earth.";
assert_eq!(format!("{}", AsShoutyKebabCase(sentence)), "WE-ARE-GOING-TO-INHERIT-THE-EARTH");
Tuple Fields§
§0: T