Stabilise ExactSizeIterator::len
This commit is contained in:
parent
b63cee4a11
commit
58b7efe5a6
@ -1055,6 +1055,7 @@ pub trait RandomAccessIterator: Iterator {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub trait ExactSizeIterator: Iterator {
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
/// Return the exact length of the iterator.
|
||||
fn len(&self) -> usize {
|
||||
let (lower, upper) = self.size_hint();
|
||||
|
Loading…
x
Reference in New Issue
Block a user