4 ms·
Dynamic dispatch is where you call a method on a Box<dyn T> type, where T is a trait. Cfr: https://doc.rust-lang.org/1.8.0/book/trait-objects.html https://doc.
by gdcbe 3y ago
Dynamic dispatch is where you call a method on a Box<dyn T> type, where T is a trait.
Cfr: https://doc.rust-lang.org/1.8.0/book/trait-objects.html https://doc.rust-lang.org/1.8.0/book/trait-objects.html
This in contrast to generics which is static.