mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-16 13:25:03 +01:00
lol no futures
This commit is contained in:
parent
aa8980081d
commit
5fecc8c3f4
1 changed files with 2 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ impl<T> Project for FutResult<T> {
|
||||||
pub trait Stream {
|
pub trait Stream {
|
||||||
type Item;
|
type Item;
|
||||||
|
|
||||||
fn for_each<Fut, F>(self, f: F) -> ForEach<Self, F>
|
fn for_each<Fut, F>(self, f: F) -> ForEach<F>
|
||||||
where
|
where
|
||||||
F: FnMut(Self::Item) -> Fut,
|
F: FnMut(Self::Item) -> Fut,
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|
@ -48,8 +48,7 @@ where
|
||||||
type Item = <F::Output as Project>::Assoc;
|
type Item = <F::Output as Project>::Assoc;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct ForEach<St, F> {
|
pub struct ForEach<F> {
|
||||||
stream: St,
|
|
||||||
f: F,
|
f: F,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue