I would use str::split with an empty string and then remove any empty strings using Iterator::filter : fn string_chars(s: &str) -> impl Iterator<Item ...
確定! 回上一頁