mirror of
https://github.com/Noratrieb/ice-104649.git
synced 2026-01-14 12:35:02 +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 {
|
||||
type Item;
|
||||
|
||||
fn map<T, F>(self, f: F) -> Map<Self, F>
|
||||
fn map<T, F>(self, f: F) -> Map<F>
|
||||
where
|
||||
F: FnMut(Self::Item) -> T,
|
||||
Self: Sized,
|
||||
|
|
@ -68,10 +68,9 @@ mod fut {
|
|||
}
|
||||
}
|
||||
|
||||
impl<St, F> Stream for Map<F>
|
||||
impl<F> Stream for Map<F>
|
||||
where
|
||||
St: Stream,
|
||||
F: FnOnce1<St::Item>,
|
||||
F: FnOnce1<String>,
|
||||
F::Output: Future,
|
||||
{
|
||||
type Item = <F::Output as Future>::Output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue