Struct ordered_stream::MapOrdering
source · pub struct MapOrdering<S, MapInto, MapFrom> { /* private fields */ }
Expand description
A stream for the map_ordering
function.
Implementations§
source§impl<S, I, F> MapOrdering<S, I, F>
impl<S, I, F> MapOrdering<S, I, F>
sourcepub fn into_inner(self) -> S
pub fn into_inner(self) -> S
Convert to source stream.
Trait Implementations§
source§impl<S, MapInto, MapFrom, NewOrdering, NewData> OrderedStream for MapOrdering<S, MapInto, MapFrom>where
S: OrderedStream,
MapInto: FnMut(S::Ordering, S::Data) -> (NewOrdering, NewData),
MapFrom: FnMut(&NewOrdering) -> Option<S::Ordering>,
NewOrdering: Ord,
impl<S, MapInto, MapFrom, NewOrdering, NewData> OrderedStream for MapOrdering<S, MapInto, MapFrom>where S: OrderedStream, MapInto: FnMut(S::Ordering, S::Data) -> (NewOrdering, NewData), MapFrom: FnMut(&NewOrdering) -> Option<S::Ordering>, NewOrdering: Ord,
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 size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the stream.
source§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