2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-29 04:26:41 +00:00

Mark successors as unstable

This commit is contained in:
Felipe Sere 2019-11-10 18:03:07 +01:00
parent 243cdd7ff1
commit 4c09cdbeac
2 changed files with 6 additions and 1 deletions

View file

@ -317,7 +317,6 @@ mod from_iter;
mod once; mod once;
mod repeat; mod repeat;
mod repeat_with; mod repeat_with;
mod successors;
cfg_unstable! { cfg_unstable! {
mod double_ended_stream; mod double_ended_stream;
@ -328,6 +327,7 @@ cfg_unstable! {
mod interval; mod interval;
mod into_stream; mod into_stream;
mod product; mod product;
mod successors;
mod sum; mod sum;
pub use double_ended_stream::DoubleEndedStream; pub use double_ended_stream::DoubleEndedStream;
@ -339,5 +339,6 @@ cfg_unstable! {
pub use into_stream::IntoStream; pub use into_stream::IntoStream;
pub use product::Product; pub use product::Product;
pub use stream::Merge; pub use stream::Merge;
pub use successors::{successors, Successors};
pub use sum::Sum; pub use sum::Sum;
} }

View file

@ -16,6 +16,8 @@ pin_project! {
/// This stream is constructed by [`successors`] function /// This stream is constructed by [`successors`] function
/// ///
/// [`succcessors`]: fn.succssors.html /// [`succcessors`]: fn.succssors.html
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[derive(Debug)] #[derive(Debug)]
pub struct Successors<F, Fut, T> pub struct Successors<F, Fut, T>
where where
@ -65,6 +67,8 @@ pin_project! {
/// # }) } /// # }) }
/// ///
/// ``` /// ```
#[cfg(feature = "unstable")]
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
pub fn successors<F, Fut, T>(first: Option<T>, succ: F) -> Successors<F, Fut, T> pub fn successors<F, Fut, T>(first: Option<T>, succ: F) -> Successors<F, Fut, T>
where where
F: FnMut(T) -> Fut, F: FnMut(T) -> Fut,