Function split_first_char

Source
pub fn split_first_char(text: &str) -> Option<(char, &str)>
Expand description

Split a string into a pair of first character and the rest.

assert_eq!(split_first_char("abc"), Some(('a', "bc")))