[][src]Trait async_std::stream::DoubleEndedStream

pub trait DoubleEndedStream: Stream {
    fn poll_next_back(
        self: Pin<&mut Self>,
        cx: &mut Context
    ) -> Poll<Option<Self::Item>>; }
This is supported on unstable only.

A stream able to yield elements from both ends.

Something that implements DoubleEndedStream has one extra capability over something that implements Stream: the ability to also take Items from the back, as well as the front.

Required methods

fn poll_next_back(
    self: Pin<&mut Self>,
    cx: &mut Context
) -> Poll<Option<Self::Item>>

This is supported on unstable only.

Removes and returns an element from the end of the stream.

Returns None when there are no more elements.

The trait-level docs contain more details.

Loading content...

Implementors

Loading content...