File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ use crate::task::{Context, Poll};
9
9
pin_project ! {
10
10
#[ doc( hidden) ]
11
11
#[ allow( missing_debug_implementations) ]
12
+ #[ cfg( all( feature = "default" , feature = "unstable" ) ) ]
13
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
12
14
pub struct CountFuture <S > {
13
15
#[ pin]
14
16
stream: S ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ mod any;
26
26
mod chain;
27
27
mod cloned;
28
28
mod cmp;
29
- mod count;
30
29
mod copied;
31
30
mod cycle;
32
31
mod enumerate;
@@ -69,7 +68,6 @@ mod zip;
69
68
use all:: AllFuture ;
70
69
use any:: AnyFuture ;
71
70
use cmp:: CmpFuture ;
72
- use count:: CountFuture ;
73
71
use cycle:: Cycle ;
74
72
use enumerate:: Enumerate ;
75
73
use eq:: EqFuture ;
@@ -123,12 +121,14 @@ cfg_unstable! {
123
121
use crate :: stream:: into_stream:: IntoStream ;
124
122
use crate :: stream:: { FromStream , Product , Sum } ;
125
123
124
+ use count:: CountFuture ;
126
125
pub use merge:: Merge ;
127
126
pub use flatten:: Flatten ;
128
127
pub use flat_map:: FlatMap ;
129
128
pub use timeout:: { TimeoutError , Timeout } ;
130
129
pub use throttle:: Throttle ;
131
130
131
+ mod count;
132
132
mod merge;
133
133
mod flatten;
134
134
mod flat_map;
@@ -1911,6 +1911,8 @@ extension_trait! {
1911
1911
# }) }
1912
1912
```
1913
1913
"# ]
1914
+ #[ cfg( feature = "unstable" ) ]
1915
+ #[ cfg_attr( feature = "docs" , doc( cfg( unstable) ) ) ]
1914
1916
fn count( self ) -> impl Future <Output = usize > [ CountFuture <Self >]
1915
1917
where
1916
1918
Self : Sized ,
You can’t perform that action at this time.
0 commit comments