2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-21 03:39:40 +00:00

export Filter type

This commit is contained in:
Fedor Sakharov 2019-09-21 16:40:01 +03:00
parent e7ae10ebee
commit e430851bc4
No known key found for this signature in database
GPG key ID: 93D436E666BF0FEE
2 changed files with 3 additions and 3 deletions

View file

@ -4,8 +4,8 @@ use std::pin::Pin;
use crate::stream::Stream;
use crate::task::{Context, Poll};
#[doc(hidden)]
#[allow(missing_debug_implementations)]
/// A stream to filter elements of another stream with a predicate.
#[derive(Debug)]
pub struct Filter<S, P, T> {
stream: S,
predicate: P,

View file

@ -37,6 +37,7 @@ mod scan;
mod take;
mod zip;
pub use filter::Filter;
pub use fuse::Fuse;
pub use scan::Scan;
pub use take::Take;
@ -45,7 +46,6 @@ pub use zip::Zip;
use all::AllFuture;
use any::AnyFuture;
use enumerate::Enumerate;
use filter::Filter;
use filter_map::FilterMap;
use find::FindFuture;
use find_map::FindMapFuture;