我已经在锈语言书的第19章上了,所以我看到了这段代码
Box<dyn Fn() + Send + 'static>
它做什么,为什么里面有加号?我不记得我在上一章中遇到过。
以及Box::new(|| println!("hi"))如何是Box<dyn Fn() + Send + 'static>?
Box::new(|| println!("hi"))
谢谢
感谢@Asya Corbeau使我回到了第10章,它是Specifying Multiple Trait Bounds with the + Syntax