diff -r 1f19c6bbf07b -r 3868555d135c src/collection.rs --- a/src/collection.rs Sun Apr 27 20:29:43 2025 -0500 +++ b/src/collection.rs Fri May 15 14:46:30 2026 -0500 @@ -5,20 +5,24 @@ use crate::loc::Loc; /// An abstract collection of elements. -pub trait Collection : IntoIterator { +pub trait Collection: IntoIterator { /// Type of elements of the collection type Element; /// Iterator over references to elements of the collection - type RefsIter<'a> : Iterator where Self : 'a; + type RefsIter<'a>: Iterator + where + Self: 'a; /// Returns an iterator over references to elements of the collection. fn iter_refs(&self) -> Self::RefsIter<'_>; } /// An abstract collection of mutable elements. -pub trait CollectionMut : Collection { +pub trait CollectionMut: Collection { /// Iterator over references to elements of the collection - type RefsIterMut<'a> : Iterator where Self : 'a; + type RefsIterMut<'a>: Iterator + where + Self: 'a; /// Returns an iterator over references to elements of the collection. fn iter_refs_mut(&mut self) -> Self::RefsIterMut<'_>; @@ -51,4 +55,4 @@ slice_like_collection!(Vec where E); slice_like_collection!([E; N] where E, const N : usize); -slice_like_collection!(Loc where E, const N : usize); +slice_like_collection!(Loc where E, const N : usize);