Skip to main content

first_char_and_width

Function first_char_and_width 

Source
pub fn first_char_and_width(value: &str) -> (usize, Option<char>)
Expand description

A helper for getting the first char of a provided &str. Returns the width of the character (possibly zero) and the character itself.