implement `ExactSizeIterator` for `linked_list::IntoIter`
This commit is contained in:
parent
64532f7f00
commit
7934d524b5
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue