3 ms·
Rust provides dynamic dispatch through trait objects : https://doc.rust-lang.org/book/trait-objects.html https://doc.rust-lang.org/book/trait-objects.html It pr
by hokkos 10y ago
Rust provides dynamic dispatch through trait objects : https://doc.rust-lang.org/book/trait-objects.html https://doc.rust-lang.org/book/trait-objects.html
It provides it with a simple vtable like other languages, with the same efficiency. And PGO is possible with the use of LLVM, but not easily for now : https://github.com/Geal/pgo-rust https://github.com/Geal/pgo-rust