get character from str rust code example Example: get length of string rust my_string.chars().count()