1 2 3 4 5 6 7 8 9
#[const_trait] pub trait ConstIterator { type Item<'a> where Self: 'a; fn next<'a>(&'a mut self) -> Option<Self::Item<'a>>; }