A undergraduate CS student at CUMT
w6rsty@88.com
2024-05-27
最后编辑于:2024-06-09
Higher-Ranked Trait Bound 当一个函数需要接受一个闭包,该闭包对生命周期没有要求for <'a>,表示可以作用于任何生命周期
for <'a>
https://learnku.com/docs/nomicon/2018/37-higher-order-trait-boundary/4718 https://doc.rust-lang.org/nomicon/hrtb.html