2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-03-27 03:30:25 +00:00

export Skip type

This commit is contained in:
Fedor Sakharov 2019-09-21 16:37:30 +03:00
parent 570329b176
commit 75da138696
No known key found for this signature in database
GPG key ID: 93D436E666BF0FEE
2 changed files with 3 additions and 3 deletions

View file

@ -39,6 +39,7 @@ mod zip;
pub use fuse::Fuse; pub use fuse::Fuse;
pub use scan::Scan; pub use scan::Scan;
use skip::Skip;
pub use take::Take; pub use take::Take;
pub use zip::Zip; pub use zip::Zip;
@ -52,7 +53,6 @@ use fold::FoldFuture;
use min_by::MinByFuture; use min_by::MinByFuture;
use next::NextFuture; use next::NextFuture;
use nth::NthFuture; use nth::NthFuture;
use skip::Skip;
use std::cmp::Ordering; use std::cmp::Ordering;
use std::marker::PhantomData; use std::marker::PhantomData;

View file

@ -3,8 +3,8 @@ use std::task::{Context, Poll};
use crate::stream::Stream; use crate::stream::Stream;
#[doc(hidden)] /// A stream to skip first n elements of another stream.
#[allow(missing_debug_implementations)] #[derive(Debug)]
pub struct Skip<S> { pub struct Skip<S> {
stream: S, stream: S,
n: usize, n: usize,