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
c226fbd8b1
commit
5617c76385
1 changed files with 3 additions and 4 deletions
|
|
@ -25,7 +25,7 @@ mod fut {
|
||||||
pub trait Stream {
|
pub trait Stream {
|
||||||
type Item;
|
type Item;
|
||||||
|
|
||||||
fn map<T, F>(self, f: F) -> Map<Self, F>
|
fn map<T, F>(self, f: F) -> Map<F>
|
||||||
where
|
where
|
||||||
F: FnMut(Self::Item) -> T,
|
F: FnMut(Self::Item) -> T,
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|
@ -68,10 +68,9 @@ mod fut {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<St, F> Stream for Map<F>
|
impl<F> Stream for Map<F>
|
||||||
where
|
where
|
||||||
St: Stream,
|
F: FnOnce1<String>,
|
||||||
F: FnOnce1<St::Item>,
|
|
||||||
F::Output: Future,
|
F::Output: Future,
|
||||||
{
|
{
|
||||||
type Item = <F::Output as Future>::Output;
|
type Item = <F::Output as Future>::Output;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue