Skeleton for DoubleEndedStreamExt trait

pull/562/head
Felipe Sere 5 years ago
parent 63b6a2b961
commit fa288931c6

@ -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<Option<Self::Item>>;
}
#[doc = r#"
Something else
"#]
pub trait DoubleEndedStreamExt: crate::stream::DoubleEndedStream {
}
}

@ -318,6 +318,7 @@ mod repeat;
mod repeat_with;
cfg_unstable! {
mod double_ended;
mod double_ended_stream;
mod exact_size_stream;
mod extend;

Loading…
Cancel
Save