impl Traits可以用作函数参数.这个和具有特征约束的泛型函数之间是否存在差异?
impl Trait
trait Foo {} fn func1(_: impl Foo) {} fn func2<T: Foo>(_: T) {}
rust
rust ×1