Stabilise ExactSizeIterator::len

This commit is contained in:
Simonas Kazlauskas 2015-02-15 01:04:38 +02:00
parent b63cee4a11
commit 58b7efe5a6

View File

@ -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();