&dyn Trait, Arc<dyn Trait>, etc
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?
-
-
-
Ahhh okay! :D
End of conversation
New conversation -
-
-
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
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.