|
|
|
@ -52,7 +52,6 @@ use min_by::MinByFuture;
|
|
|
|
|
use next::NextFuture;
|
|
|
|
|
use nth::NthFuture;
|
|
|
|
|
|
|
|
|
|
use super::from_stream::FromStream;
|
|
|
|
|
use std::cmp::Ordering;
|
|
|
|
|
use std::marker::PhantomData;
|
|
|
|
|
use std::pin::Pin;
|
|
|
|
@ -60,6 +59,12 @@ use std::task::{Context, Poll};
|
|
|
|
|
|
|
|
|
|
use cfg_if::cfg_if;
|
|
|
|
|
|
|
|
|
|
cfg_if! {
|
|
|
|
|
if #[cfg(any(feature = "unstable", feature = "docs"))] {
|
|
|
|
|
use crate::stream::FromStream;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cfg_if! {
|
|
|
|
|
if #[cfg(feature = "docs")] {
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
@ -748,6 +753,8 @@ pub trait Stream {
|
|
|
|
|
///
|
|
|
|
|
/// [`stream`]: trait.Stream.html#tymethod.next
|
|
|
|
|
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead (TODO)"]
|
|
|
|
|
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
|
|
|
|
#[cfg(feature = "unstable")]
|
|
|
|
|
fn collect<'a, B>(self) -> dyn_ret!('a, B)
|
|
|
|
|
where
|
|
|
|
|
Self: futures_core::stream::Stream + Sized + Send + 'a,
|
|
|
|
|