@@ -54,7 +54,6 @@ mod ne;
5454mod next;
5555mod nth;
5656mod partial_cmp;
57- mod partition;
5857mod position;
5958mod scan;
6059mod skip;
@@ -92,7 +91,6 @@ use ne::NeFuture;
9291use next:: NextFuture ;
9392use nth:: NthFuture ;
9493use partial_cmp:: PartialCmpFuture ;
95- use partition:: PartitionFuture ;
9694use position:: PositionFuture ;
9795use try_fold:: TryFoldFuture ;
9896use try_for_each:: TryForEachFuture ;
@@ -122,8 +120,11 @@ cfg_unstable! {
122120
123121 use crate :: stream:: into_stream:: IntoStream ;
124122 use crate :: stream:: { FromStream , Product , Sum } ;
123+ use crate :: stream:: Extend ;
125124
126125 use count:: CountFuture ;
126+ use partition:: PartitionFuture ;
127+
127128 pub use merge:: Merge ;
128129 pub use flatten:: Flatten ;
129130 pub use flat_map:: FlatMap ;
@@ -134,6 +135,7 @@ cfg_unstable! {
134135 mod merge;
135136 mod flatten;
136137 mod flat_map;
138+ mod partition;
137139 mod timeout;
138140 mod throttle;
139141}
@@ -1334,14 +1336,16 @@ extension_trait! {
13341336 # }) }
13351337 ```
13361338 "# ]
1339+ #[ cfg( feature = "unstable" ) ]
1340+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
13371341 fn partition<B , F >(
13381342 self ,
13391343 f: F ,
13401344 ) -> impl Future <Output = ( B , B ) > [ PartitionFuture <Self , F , B >]
13411345 where
13421346 Self : Sized ,
13431347 F : FnMut ( & Self :: Item ) -> bool ,
1344- B : Default ,
1348+ B : Default + Extend < Self :: Item > ,
13451349 {
13461350 PartitionFuture :: new( self , f)
13471351 }
0 commit comments