Closed Eliah-Lakhin closed 4 weeks ago
Resolves #29
Introduces three utility function to the arena::Repo collection:
arena::Repo
Repo::enumerate
(Entry, &T)
Repo::enumerate_mut
(Entry, &mut T)
Repo::into_enumeration
(Entry, T)
Resolves #29
Introduces three utility function to the
arena::Repo
collection:Repo::enumerate
- yields pairs of(Entry, &T)
for non-exclusive iteration.Repo::enumerate_mut
- yields pairs of(Entry, &mut T)
for exclusive iteration.Repo::into_enumeration
- yields owning pairs of(Entry, T)
.