Struct heck::AsShoutySnekCase
source · pub struct AsShoutySnekCase<T: AsRef<str>>(pub T);
Expand description
This wrapper performs a shouty snake case conversion in fmt::Display
.
Example:
use heck::AsShoutySnakeCase;
let sentence = "That world is growing in this minute.";
assert_eq!(format!("{}", AsShoutySnakeCase(sentence)), "THAT_WORLD_IS_GROWING_IN_THIS_MINUTE");
Tuple Fields§
§0: T