get_words

Function get_words 

Source
pub fn get_words(string: &str) -> Vec<String>
Expand description

Get all of the words in a string.

§Arguments

  • string - The string to get words from.

§Examples

let result = case_switcher::get_words("sample_string");
assert_eq!(result, vec!["sample", "string"]);