1 2 3 4 5
/// Extract the char at a specific location in a string. #[inline] pub fn get_char(string: &String, char_loc: usize) -> char { string[char_loc..].chars().next().unwrap() // Return the character at the specified index from the String }