add unstable cfg to FromStream/IntoStream

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
staging
Yoshua Wuyts 5 years ago
parent cb7f3dd376
commit e6a3160c8b
No known key found for this signature in database
GPG Key ID: 24EA8164F96777ED

@ -10,6 +10,7 @@ use std::pin::Pin;
/// See also: [`IntoStream`].
///
/// [`IntoStream`]: trait.IntoStream.html
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub trait FromStream<T: Send> {
/// Creates a value from a stream.
///

@ -13,6 +13,7 @@ use futures_core::stream::Stream;
/// See also: [`FromStream`].
///
/// [`FromStream`]: trait.FromStream.html
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub trait IntoStream {
/// The type of the elements being iterated over.
type Item;

Loading…
Cancel
Save