Mathias Vandaelemathias-vandaele.dev·Feb 28, 2024Static dispatch vs dynamic dispatch in Rust, how to dramatically improve performances + Java 21 bonusBefore diving deeper, let's understand the key differences between static and dynamic dispatching. When you have a trait (interface for those unfamiliar with rust), you have to put the function signature of what all classes or struct will implement. ...Discuss·59 readsstatic dispatch
Raineraineyang.hashnode.dev·Dec 14, 2023Rust Learning Note: Generics and TraitsThis blog is a summay of Chapter 2.8 of Rust Course (course.rs) Generics Generics can be used in structs, enumerators, and methods, as shown in the example below: 1 Using generics in structs: struct Point<T> { x: T, y: T } fn main() { le...Discusstrait object