Fix warnings and add comments.

This commit is contained in:
Sébastien Crozet
2022-03-19 16:10:49 +01:00
committed by Sébastien Crozet
parent e2e6fc7871
commit db6a8c526d
23 changed files with 391 additions and 131 deletions

View File

@@ -13,6 +13,7 @@ impl<T> Coarena<T> {
Self { data: Vec::new() }
}
/// Iterates through all the elements of this coarena.
pub fn iter(&self) -> impl Iterator<Item = (Index, &T)> {
self.data
.iter()