egui::text_selection::text_cursor_state

Function slice_char_range

Source
pub fn slice_char_range(s: &str, char_range: Range<usize>) -> &str