add comment about separate SequenceExt trait

This commit is contained in:
Michael Sippel 2023-08-14 01:34:55 +02:00
parent 18c384fdf9
commit 0befef4d0b
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -9,6 +9,12 @@ pub trait SequenceView: View<Msg = usize> {
} }
//<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>> //<<<<>>>><<>><><<>><<<*>>><<>><><<>><<<<>>>>
/* It has a default implementation,
so why not merge it with SequenceView trait ?
iter will make it un-"object safe" [E0038],
therefore it needs to be implemented in a separate trait
*/
pub trait SequenceViewExt: SequenceView { pub trait SequenceViewExt: SequenceView {
fn iter<'a>(&'a self) -> SequenceViewIter<'a, Self> { fn iter<'a>(&'a self) -> SequenceViewIter<'a, Self> {