pub fn split_keyword(keyword: &str) -> (&str, &str)
Expand description
Split the keyword by the first whitespace into the prefix and the suffix. Return an empty string as the suffix if there is no whitespace.
ยงExamples
assert_eq!(split_keyword("foo"), ("foo", ""));
assert_eq!(split_keyword("foo bar baz"), ("foo", "bar baz"));