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:
parent
e7ae10ebee
commit
e430851bc4
2 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue