Function next_word

Source
pub fn next_word(line: &[u8]) -> Option<(&[u8], &[u8])>
Expand description

Returns the next word (non-whitespace chunk) in u8 slice, and the remainder (which may still have whitespace)

Returns None when the remainder is empty or all whitespace.