implement `ExactSizeIterator` for `linked_list::IntoIter`

This commit is contained in:
Andrew Paseltiner 2015-03-23 08:51:13 -04:00
parent 64532f7f00
commit 7934d524b5
1 changed files with 2 additions and 0 deletions

View File

@ -832,6 +832,8 @@ impl<A> DoubleEndedIterator for IntoIter<A> {
fn next_back(&mut self) -> Option<A> { self.list.pop_back() }
}
impl<A> ExactSizeIterator for IntoIter<A> {}
#[stable(feature = "rust1", since = "1.0.0")]
impl<A> FromIterator<A> for LinkedList<A> {
fn from_iter<T: IntoIterator<Item=A>>(iter: T) -> LinkedList<A> {