#generics
3 articles about generics
Filter by Topic
All#allocation#beginners#borrowing#bounds#box#cache#closures#collections#concurrency#dangling-pointer#data-races#dispatch#drain#drop#dynamic-dispatch#fnmut#generics#heap#higher-order-functions#iterators#lifetimes#memory#monomorphization#object-safety#operators#optimization#ownership#performance#plugins#retain#rust#stack#str#string#supertraits#trait-bounds#traits#vec
rustAugust 14, 2025
Use supertraits to enforce a hierarchy of behaviors
Leveraging supertraits to establish behavior hierarchies and combining them with where clauses to optimize complex generic algorithms for performance and type safety
rustAugust 12, 2025
fn process<T: MyTrait>(x: T)) VS using dyn MyTrait for dynamic dispatch.
Static vs. Dynamic Dispatch
rustAugust 11, 2025
Trait Bounds
Using trait bounds in Rust for type safety and performance in mathematical computations