mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-09 01:46:42 +00:00
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`.
14 lines
245 B
Rust
14 lines
245 B
Rust
//! The Rust core error handling type
|
|
//!
|
|
//! This module provides the `Result<T, E>` type for returning and
|
|
//! propagating errors.
|
|
|
|
mod from_stream;
|
|
|
|
#[doc(inline)]
|
|
pub use std::result::Result;
|
|
|
|
cfg_unstable! {
|
|
mod product;
|
|
mod sum;
|
|
}
|