3 ms·
You can create a Range of nearly anything but that doesn't mean any of the methods/traits useful for a Range are implemented on it. E.g. Iterator is only imple
by dathinab 6y ago
You can create a Range of nearly anything but that doesn't mean any of the methods/traits useful for a Range are implemented on it.
E.g. Iterator is only implemented for things implementing the currently unstable Step trait which for now are mainly integers and char.
E.g. only Range<usize> can be used to index/slice things.