3 ms·
> Your link to the Oxide Hubris repo is misleading you Sorry about this. It wasn't intentional. But just to confirm, Box<T> always allocates? So dynamic dispa
by scoutt 4y ago
> Your link to the Oxide Hubris repo is misleading you
Sorry about this. It wasn't intentional.
But just to confirm, Box<T> always allocates? So dynamic dispatch is not recommended in embedded, and thus crates that uses dynamic dispatch and/or Box<T>?
- jmillikin 4y agoDynamic dispatch (dyn) in embedded is fine. Dynamic allocation (Box) in embedded is not recommended. `&dyn SomeTrait` is dynamic dispatch without dynamic allocation. `Box<i32>` is dynamic allocation without dynamic dispatch.