Published onJanuary 30, 2025Today I Learned: Understanding the Complexity of dyn Trait in RustRustTraitsGenericsLifetimesExploring what dyn Trait is—and isn’t—in Rust, including type, lifetime, and generic distinctions that make it both powerful and complex.
Published onDecember 30, 2024Converting from Generic Unsized Parameter to Trait Object in RustRustTraitsMemory-ManagementGenericsLearn how to effectively convert a generic unsized parameter to a trait object in Rust, and understand the subtleties involved in handling `?Sized` and dynamic dispatch.