@@ -27,7 +27,9 @@ mod chain;
27
27
mod cloned;
28
28
mod cmp;
29
29
mod copied;
30
+ mod count;
30
31
mod cycle;
32
+ mod delay;
31
33
mod enumerate;
32
34
mod eq;
33
35
mod filter;
@@ -47,6 +49,7 @@ mod map;
47
49
mod max;
48
50
mod max_by;
49
51
mod max_by_key;
52
+ mod merge;
50
53
mod min;
51
54
mod min_by;
52
55
mod min_by_key;
@@ -61,13 +64,17 @@ mod skip_while;
61
64
mod step_by;
62
65
mod take;
63
66
mod take_while;
67
+ mod throttle;
68
+ mod timeout;
64
69
mod try_fold;
65
70
mod try_for_each;
71
+ mod unzip;
66
72
mod zip;
67
73
68
74
use all:: AllFuture ;
69
75
use any:: AnyFuture ;
70
76
use cmp:: CmpFuture ;
77
+ use count:: CountFuture ;
71
78
use cycle:: Cycle ;
72
79
use enumerate:: Enumerate ;
73
80
use eq:: EqFuture ;
@@ -94,53 +101,48 @@ use partial_cmp::PartialCmpFuture;
94
101
use position:: PositionFuture ;
95
102
use try_fold:: TryFoldFuture ;
96
103
use try_for_each:: TryForEachFuture ;
104
+ use unzip:: UnzipFuture ;
97
105
98
106
pub use chain:: Chain ;
99
107
pub use cloned:: Cloned ;
100
108
pub use copied:: Copied ;
109
+ pub use delay:: Delay ;
101
110
pub use filter:: Filter ;
102
111
pub use fuse:: Fuse ;
103
112
pub use inspect:: Inspect ;
104
113
pub use map:: Map ;
114
+ pub use merge:: Merge ;
105
115
pub use scan:: Scan ;
106
116
pub use skip:: Skip ;
107
117
pub use skip_while:: SkipWhile ;
108
118
pub use step_by:: StepBy ;
109
119
pub use take:: Take ;
110
120
pub use take_while:: TakeWhile ;
121
+ pub use throttle:: Throttle ;
122
+ pub use timeout:: { Timeout , TimeoutError } ;
111
123
pub use zip:: Zip ;
112
124
113
125
use core:: cmp:: Ordering ;
126
+ use core:: future:: Future ;
127
+ use core:: pin:: Pin ;
128
+ use core:: time:: Duration ;
114
129
115
- cfg_unstable ! {
116
- use core:: future:: Future ;
117
- use core:: pin:: Pin ;
118
- use core:: time:: Duration ;
130
+ use crate :: stream:: { Product , Sum } ;
119
131
132
+ cfg_unstable ! {
133
+ use crate :: stream:: FromStream ;
120
134
use crate :: stream:: into_stream:: IntoStream ;
121
- use crate :: stream:: { FromStream , Product , Sum } ;
122
135
use crate :: stream:: Extend ;
123
136
124
- use count:: CountFuture ;
125
137
use partition:: PartitionFuture ;
126
- use unzip:: UnzipFuture ;
127
138
128
- pub use merge:: Merge ;
129
139
pub use flatten:: Flatten ;
130
140
pub use flat_map:: FlatMap ;
131
- pub use timeout:: { TimeoutError , Timeout } ;
132
- pub use throttle:: Throttle ;
133
- pub use delay:: Delay ;
134
141
135
- mod count;
136
- mod merge;
142
+
137
143
mod flatten;
138
144
mod flat_map;
139
145
mod partition;
140
- mod timeout;
141
- mod throttle;
142
- mod delay;
143
- mod unzip;
144
146
}
145
147
146
148
extension_trait ! {
@@ -355,8 +357,6 @@ extension_trait! {
355
357
# }) }
356
358
```
357
359
"# ]
358
- #[ cfg( feature = "unstable" ) ]
359
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
360
360
fn throttle( self , d: Duration ) -> Throttle <Self >
361
361
where
362
362
Self : Sized ,
@@ -598,8 +598,6 @@ extension_trait! {
598
598
# }) }
599
599
```
600
600
"# ]
601
- #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
602
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
603
601
fn delay( self , dur: std:: time:: Duration ) -> Delay <Self >
604
602
where
605
603
Self : Sized ,
@@ -1511,8 +1509,6 @@ extension_trait! {
1511
1509
# }) }
1512
1510
```
1513
1511
"# ]
1514
- #[ cfg( feature = "unstable" ) ]
1515
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1516
1512
fn by_ref( & mut self ) -> & mut Self {
1517
1513
self
1518
1514
}
@@ -1656,8 +1652,6 @@ extension_trait! {
1656
1652
# Ok(()) }) }
1657
1653
```
1658
1654
"# ]
1659
- #[ cfg( any( feature = "unstable" , feature = "docs" ) ) ]
1660
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1661
1655
fn timeout( self , dur: Duration ) -> Timeout <Self >
1662
1656
where
1663
1657
Self : Stream + Sized ,
@@ -1822,8 +1816,6 @@ extension_trait! {
1822
1816
# }) }
1823
1817
```
1824
1818
"# ]
1825
- #[ cfg( feature = "unstable" ) ]
1826
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1827
1819
fn unzip<A , B , FromA , FromB >( self ) -> impl Future <Output = ( FromA , FromB ) > [ UnzipFuture <Self , FromA , FromB >]
1828
1820
where
1829
1821
FromA : Default + Extend <A >,
@@ -1921,8 +1913,6 @@ extension_trait! {
1921
1913
# });
1922
1914
```
1923
1915
"# ]
1924
- #[ cfg( feature = "unstable" ) ]
1925
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1926
1916
fn merge<U >( self , other: U ) -> Merge <Self , U >
1927
1917
where
1928
1918
Self : Sized ,
@@ -2068,8 +2058,6 @@ extension_trait! {
2068
2058
# }) }
2069
2059
```
2070
2060
"# ]
2071
- #[ cfg( feature = "unstable" ) ]
2072
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
2073
2061
fn count( self ) -> impl Future <Output = usize > [ CountFuture <Self >]
2074
2062
where
2075
2063
Self : Sized ,
@@ -2330,8 +2318,6 @@ extension_trait! {
2330
2318
# }) }
2331
2319
```
2332
2320
"# ]
2333
- #[ cfg( feature = "unstable" ) ]
2334
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
2335
2321
fn sum<' a, S >(
2336
2322
self ,
2337
2323
) -> impl Future <Output = S > + ' a [ Pin <Box <dyn Future <Output = S > + ' a>>]
@@ -2376,8 +2362,6 @@ extension_trait! {
2376
2362
# }) }
2377
2363
```
2378
2364
"# ]
2379
- #[ cfg( feature = "unstable" ) ]
2380
- #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
2381
2365
fn product<' a, P >(
2382
2366
self ,
2383
2367
) -> impl Future <Output = P > + ' a [ Pin <Box <dyn Future <Output = P > + ' a>>]
0 commit comments