Yoshua Wuyts
c82b1efb69
fix(stream): add send guards on collect
...
Closes #639
Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2020-06-27 16:46:14 +02:00
Oleg Nosov
38de0bfd22
Use std::convert::identity
2020-01-15 09:43:01 +03:00
Oleg Nosov
134089af2c
Use filter_map(identity)
+ other fixes
2020-01-15 08:57:43 +03:00
Oleg Nosov
fb567a3a09
Recovered comments
2020-01-12 17:53:16 +03:00
Oleg Nosov
83afbab2ef
Use take_while
instead of scan
for Option
2020-01-12 17:35:57 +03:00
Grzegorz Gierlach
f0875d2dca
Cleaning up stream pinning.
2019-11-12 19:34:08 +01:00
Stjepan Glavina
548733e5d5
Cleanup stream traits ( #487 )
...
* Cleanup stream traits
* Fix docs
2019-11-09 11:22:09 +01:00
Yoshua Wuyts
ed1cb49807
remove remaining instances of VecDeque stream
...
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
2019-11-04 01:57:53 +01:00
nasa
ddbbbfc32a
Replace VecDeque
with stream::from_iter
in examples ( #447 )
2019-11-03 13:40:51 +01:00
Kyle Tomsic
e26eb7a719
Add Stream::sum()
and Stream::product()
implementations
...
These are the stream equivalents to `std::iter::Iterator::sum()` and
`std::iter::Iterator::product()`.
Note that this changeset tweaks the `Stream::Sum` and `Stream::Product`
traits a little: rather than returning a generic future `F`, they return
a pinned, boxed, `Future` trait object now. This is in line with other
traits that return a future, e.g. `FromStream`.
2019-10-22 20:30:27 -04:00
Sunjay Varma
a05b564486
rustfmt
2019-09-30 20:14:16 -04:00
Sunjay Varma
fb7582bd7a
Using Box::pin(...) instead of Pin::from(Box::new(...))
2019-09-30 19:42:30 -04:00
Sunjay Varma
76b10c4784
FromStream for Option<T>
2019-09-30 19:42:30 -04:00