Module split_stream_by_map

Source

Structs§

LeftSplitByMap
A struct that implements Stream which returns the inner values where the predicate returns Either::Left(..) when using split_by_map
RightSplitByMap
A struct that implements Stream which returns the inner values where the predicate returns Either::Right(..) when using split_by_map
SplitByMap 🔒

Enums§

Either
Combines two different futures, streams, or sinks having the same associated types into a single type.

Traits§

SplitStreamByMapExt
This extension trait provides the functionality for splitting a stream by a predicate of type Fn(Self::Item) -> Either<L,R>. The resulting streams will yield types L and R respectively