diff --git a/src/stream/double_ended/mod.rs b/src/stream/double_ended/mod.rs new file mode 100644 index 00000000..101ccbd3 --- /dev/null +++ b/src/stream/double_ended/mod.rs @@ -0,0 +1,22 @@ +extension_trait! { + use crate::stream::Stream; + + use std::pin::Pin; + use std::task::{Context, Poll}; + + #[doc = r#" + Something fancy + "#] + pub trait DoubleEndedStream { + type Item; + + fn poll_next_back(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll>; + } + + #[doc = r#" + Something else + "#] + pub trait DoubleEndedStreamExt: crate::stream::DoubleEndedStream { + } +} + diff --git a/src/stream/mod.rs b/src/stream/mod.rs index d8b96ec2..e15d0818 100644 --- a/src/stream/mod.rs +++ b/src/stream/mod.rs @@ -318,6 +318,7 @@ mod repeat; mod repeat_with; cfg_unstable! { + mod double_ended; mod double_ended_stream; mod exact_size_stream; mod extend;