fn conditional<F, T>(f: F) -> Box<dyn Fn(T, bool) -> T> where F: Fn(T) -> T + 'static, T: 'static, { Box::new(move |x, b| if b { f(x) } else ...
確定! 回上一頁