Skeleton for DoubleEndedStreamExt trait
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 {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue