Add lifetime specifiers to the trait to allow more efficient iterators in some cases.