@@ -54,7 +54,6 @@ mod ne;
54
54
mod next;
55
55
mod nth;
56
56
mod partial_cmp;
57
- mod partition;
58
57
mod position;
59
58
mod scan;
60
59
mod skip;
@@ -92,7 +91,6 @@ use ne::NeFuture;
92
91
use next:: NextFuture ;
93
92
use nth:: NthFuture ;
94
93
use partial_cmp:: PartialCmpFuture ;
95
- use partition:: PartitionFuture ;
96
94
use position:: PositionFuture ;
97
95
use try_fold:: TryFoldFuture ;
98
96
use try_for_each:: TryForEachFuture ;
@@ -122,8 +120,11 @@ cfg_unstable! {
122
120
123
121
use crate :: stream:: into_stream:: IntoStream ;
124
122
use crate :: stream:: { FromStream , Product , Sum } ;
123
+ use crate :: stream:: Extend ;
125
124
126
125
use count:: CountFuture ;
126
+ use partition:: PartitionFuture ;
127
+
127
128
pub use merge:: Merge ;
128
129
pub use flatten:: Flatten ;
129
130
pub use flat_map:: FlatMap ;
@@ -134,6 +135,7 @@ cfg_unstable! {
134
135
mod merge;
135
136
mod flatten;
136
137
mod flat_map;
138
+ mod partition;
137
139
mod timeout;
138
140
mod throttle;
139
141
}
@@ -1334,14 +1336,16 @@ extension_trait! {
1334
1336
# }) }
1335
1337
```
1336
1338
"# ]
1339
+ #[ cfg( feature = "unstable" ) ]
1340
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1337
1341
fn partition<B , F >(
1338
1342
self ,
1339
1343
f: F ,
1340
1344
) -> impl Future <Output = ( B , B ) > [ PartitionFuture <Self , F , B >]
1341
1345
where
1342
1346
Self : Sized ,
1343
1347
F : FnMut ( & Self :: Item ) -> bool ,
1344
- B : Default ,
1348
+ B : Default + Extend < Self :: Item > ,
1345
1349
{
1346
1350
PartitionFuture :: new( self , f)
1347
1351
}
0 commit comments