#generics
4 articles about generics
Filter by topic
All#advanced#ai#allocation#associated-types#azure#basics#beginners#blanket-implementations#borrow-checker#borrowing#bounds#box#c#cache#closures#code-duplication#collections#concurrency#cosmos-db#dangling-pointer#data-races#deadlock#debugging#desktop#developer-tools#dioxus#dispatch#drain#drop#dynamic-dispatch#embedded#event-grid#fnmut#gc#generics#git#heap#higher-order-functions#integration#io-drivers#iterators#javascript#kql#library-design#lifetimes#llm#log-analytics#logic-apps#memory#monomorphization#object-safety#observability#operators#optimization#ownership#performance#plugins#retain#rust#service-bus#simd#sized#stack#standard-library#str#string#supertraits#trait-bounds#trait-coherence#traits#type-safety#typescript#unsized#vec
rustAugust 15, 2025
?Sized: writing one function for both sized and unsized types
Understanding the role of ?Sized bounds in Rust trait definitions and leveraging them to create flexible functions that work with both sized and unsized types efficiently
rustAugust 14, 2025
Supertraits: enforcing a hierarchy of behaviours
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
Trait bounds or dyn Trait? Static and dynamic dispatch compared
Generics with a trait bound compile to static dispatch; dyn Trait compiles to a vtable lookup. What each costs, and how to choose.
rustAugust 11, 2025
Trait Bounds
Using trait bounds in Rust for type safety and performance in mathematical computations