> use the nightly-only "-> impl Trait"
Can someone point me to more info on this? Possibly akin to existential types in Haskell?
Can someone point me to more info on this? Possibly akin to existential types in Haskell?
The difference between trait objects and `impl Trait` is that trait objects can hold any value that implements a trait, since they're implemented via dynamic dispatch.