fn convert_visual_to_byte_idx(s: &str, idx: usize) -> Option<usize>Expand description
Convert a visual (character) index into a byte index for the supplied string s.
Returns:
Option::Somewith the corresponding byte index (includings.len()for end-of-line)Option::Noneifidxis past the end