Function reword::snake_case_with_limit
source · pub fn snake_case_with_limit<T: AsRef<str>>(t: T, limit: usize) -> String
Expand description
Formats the input string as a snake case name and limits the length of the name.
Examples
assert_eq!(reword::snake_case_with_limit("Even Olsson Rogstadkjærnet", 25), "even_o_rogstadkjærnet");