Struct ordered_stream::MapOrdering [−][src]
pub struct MapOrdering<S, MapInto, MapFrom> { /* fields omitted */ }
Expand description
A stream for the map_ordering
function.
Trait Implementations
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,
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 more