♚
Size: a a a
♚
H
H
♚
d
S
d
(L
p
fn always_handled_0<F, Fut, Res>(f: F) -> impl Fn() -> futures::future::Map<Fut, impl Fn(Res) -> Result<Res, Infallible>>
where
F: Fn() -> Fut,
Fut: Future<Output = Res> + Send
{
use futures::FutureExt;
|| f().map(|res| Ok(res))
}
а
такое реально выразить? мне ругается компилятор на nested impl typesp
fn always_handled_0<F, Fut, Res>(f: F) -> impl Fn() -> futures::future::Map<Fut, impl Fn(Res) -> Result<Res, Infallible>>
where
F: Fn() -> Fut,
Fut: Future<Output = Res> + Send
{
use futures::FutureExt;
|| f().map(|res| Ok(res))
}
а
такое реально выразить? мне ругается компилятор на nested impl types♚
MB
MB
r
AL
AT
Oℕ
♚
NL
MP