(self)
| 70 | /// Iterator over the elements in the range. |
| 71 | #[inline] |
| 72 | pub fn iter(self) -> impl DoubleEndedIterator<Item = T> + ExactSizeIterator { |
| 73 | (self.from.index()..self.to.index()).map(|i| T::new(i)) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | /// Internal helper macro to define a new entity type along with some trait |