3 ms·
Rust as a language has a complexity threshold already exceeding C++ in readability within a decade of existence. Adding things like + `use<T>` at the end of an
by lenkite 2y ago
Rust as a language has a complexity threshold already exceeding C++ in readability within a decade of existence. Adding things like + `use<T>` at the end of an already complex return type doesn't really help matters.
fn indices<T>(
slice: &[T],
) -> impl Iterator<Item = usize> + use<T> {
0 .. slice.len()
}