Function text_analysis::trim_to_words
source · pub fn trim_to_words(content: String) -> Vec<String>
Expand description
Splits String into single words as Vector
§Example
#[test]
fn test() {
use text_analysiss::trim_to_words;
let words = "(_test] {test2!=".to_string();
let trimmed = trim_to_words(words).unwrap();
let expected = vec!["test".to_string(), "test2".to_string()];
assert_eq!(trimmed, expected);
}