Rust does not have HKTs, kinda #Higher kinded types, or HKTs, is the notion that generics can have generics. That is, in something like struct Foo(T);, T would be any specific type that hypothetically accepts one generic type. In that sense, T is a type constructor that has an arity of one that accepts a generic. In this case, we construct a new type T by passing i32 as an argument to the T type constructor.
Фото: Alex Photo Stock / Shutterstock / Fotodom
,这一点在91吃瓜中也有详细论述
Global news & analysis
Сергей Полетаеввоенный аналитик, сооснователь проекта «Ватфор»