Struct ordered_stream::Map
source · pub struct Map<S, F> { /* private fields */ }
Expand description
A stream for the map
function.
Implementations§
source§impl<S, F> Map<S, F>
impl<S, F> Map<S, F>
sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Convert to source stream.
Trait Implementations§
source§impl<S, F, R> OrderedStream for Map<S, F>where
S: OrderedStream,
F: FnMut(S::Data) -> R,
impl<S, F, R> OrderedStream for Map<S, F>where S: OrderedStream, F: FnMut(S::Data) -> R,
§type Ordering = <S as OrderedStream>::Ordering
type Ordering = <S as OrderedStream>::Ordering
The type ordered by this stream. Read more
source§fn poll_next_before(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
before: Option<&Self::Ordering>
) -> Poll<PollResult<Self::Ordering, Self::Data>>
fn poll_next_before( self: Pin<&mut Self>, cx: &mut Context<'_>, before: Option<&Self::Ordering> ) -> Poll<PollResult<Self::Ordering, Self::Data>>
Attempt to pull out the next value of this stream, registering the current task for wakeup
if needed, and returning
NoneBefore
if it is known that the stream will not produce any
more values ordered before the given point. Read moresource§fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
fn position_hint(&self) -> Option<MaybeBorrowed<'_, Self::Ordering>>
The minimum value of the ordering for any future items. Read more