MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / iter

Method iter

src/entity/base.rs:72–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected