rust substring code example Example: rustlang get substring let a = input_string.chars().nth(n).unwrap();