Why can I not reverse the result of str::split?
问题 According to the docs for Split, there is a rev method on the result of doing split on a string: fn main() { let mut length = 0; let mut mult = 1; for part in "1:30".split(":").rev() { length += mult * part.parse::<i32>().unwrap(); mult *= 60; } } I get the following error: error[E0277]: the trait bound `std::str::pattern::StrSearcher<'_, '_>: std::str::pattern::DoubleEndedSearcher<'_>` is not satisfied --> src/main.rs:4:35 | 4 | for part in "1:30".split(":").rev() { | ^^^ the trait `std::str