Struct ordered_stream::MapOrdering
source · [−]pub struct MapOrdering<S, MapInto, MapFrom> { /* private fields */ }
Expand description
A stream for the map_ordering
function.
Trait Implementations
sourceimpl<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,
sourcefn 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 more
sourcefn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the stream.
sourcefn 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
impl<'__pin, S, MapInto, MapFrom> Unpin for MapOrdering<S, MapInto, MapFrom> where
__Origin<'__pin, S, MapInto, MapFrom>: Unpin,
Auto Trait Implementations
impl<S, MapInto, MapFrom> RefUnwindSafe for MapOrdering<S, MapInto, MapFrom> where
MapFrom: RefUnwindSafe,
MapInto: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, MapInto, MapFrom> Send for MapOrdering<S, MapInto, MapFrom> where
MapFrom: Send,
MapInto: Send,
S: Send,
impl<S, MapInto, MapFrom> Sync for MapOrdering<S, MapInto, MapFrom> where
MapFrom: Sync,
MapInto: Sync,
S: Sync,
impl<S, MapInto, MapFrom> UnwindSafe for MapOrdering<S, MapInto, MapFrom> where
MapFrom: UnwindSafe,
MapInto: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more