forked from mirror/async-std
Skeleton for DoubleEndedStreamExt trait
This commit is contained in:
parent
63b6a2b961
commit
fa288931c6
2 changed files with 23 additions and 0 deletions
22
src/stream/double_ended/mod.rs
Normal file
22
src/stream/double_ended/mod.rs
Normal file
|
@ -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;
|
mod repeat_with;
|
||||||
|
|
||||||
cfg_unstable! {
|
cfg_unstable! {
|
||||||
|
mod double_ended;
|
||||||
mod double_ended_stream;
|
mod double_ended_stream;
|
||||||
mod exact_size_stream;
|
mod exact_size_stream;
|
||||||
mod extend;
|
mod extend;
|
||||||
|
|
Loading…
Reference in a new issue