File tree 3 files changed +9
-59
lines changed
3 files changed +9
-59
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,14 +3,12 @@ use crate::stream::Stream;
3
3
use std:: pin:: Pin ;
4
4
use std:: task:: { Context , Poll } ;
5
5
6
- mod from_iter;
7
6
mod next_back;
8
7
mod nth_back;
9
8
mod rfind;
10
9
mod rfold;
11
10
mod try_rfold;
12
11
13
- pub use from_iter:: { from_iter, FromIter } ;
14
12
use next_back:: NextBackFuture ;
15
13
use nth_back:: NthBackFuture ;
16
14
use rfind:: RFindFuture ;
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ use std::pin::Pin;
3
3
use pin_project_lite:: pin_project;
4
4
5
5
use crate :: stream:: Stream ;
6
+ #[ cfg( feature = "unstable" ) ]
7
+ use crate :: stream:: double_ended_stream:: DoubleEndedStream ;
6
8
use crate :: task:: { Context , Poll } ;
7
9
8
10
pin_project ! {
@@ -51,3 +53,10 @@ impl<I: Iterator> Stream for FromIter<I> {
51
53
Poll :: Ready ( self . iter . next ( ) )
52
54
}
53
55
}
56
+
57
+ #[ cfg( feature = "unstable" ) ]
58
+ impl < T : DoubleEndedIterator > DoubleEndedStream for FromIter < T > {
59
+ fn poll_next_back ( mut self : Pin < & mut Self > , _cx : & mut Context < ' _ > ) -> Poll < Option < T :: Item > > {
60
+ Poll :: Ready ( self . iter . next_back ( ) )
61
+ }
62
+ }
You can’t perform that action at this time.
0 commit comments