fn get_word_at_index(s: &str, idx: usize) -> Option<&str>Expand description
Find the non-whitespace token in the supplied string s containing the visual index idx.
Returns Option::None if:
idxIs out of bounds.idxDoes not point to a character boundary.- The character at
idxis whitespace