these have very different performance characteristics: struct Foo { ... } -> Box<Foo> trait Foo { ... } -> Box<Foo> if you forget (or dont know) whether Foo is a trait, its sad times at least, this is the justification ive mostly seen
It's kind of weird to me that with `dyn Trait`, the `Box<>` around it isn't implied. Like: are there any cases where you wouldn't want to box it too?
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
Show additional replies, including those that may contain offensive content
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.