//! Provider of [`ExactSizeRefIterator`].
usecrate::prelude::*;/// Dynamic borrowing iterator that knows its exact length.
pubtraitExactSizeRefIterator: RefIterator {/// Returns the exact remaining length of the iterator.
#[inline]fnlen(&self)->usize{let(lower, upper)=self.size_hint();assert_eq!(upper,Some(lower));
lower
}/// Returns `true` if the iterator is empty.
#[inline]fnis_empty(&self)->bool{self.len()==0}}