How to write a trait which checks whether a type is iterable How to Write a Trait that Checks if a Type is Iterable in Rust When working with Rust understanding how to determine if a type is iterable can significantly enh 3 min read 08-10-2024 6
Why are trait objects usually used via references (&dyn Trait) or smart Pointers (like Box<dyn Trait>)? Understanding Trait Objects in Rust The Use of References and Smart Pointers In Rust trait objects are a powerful feature that allows for dynamic dispatch enabl 2 min read 24-09-2024 19
Why does this static_assert on a pointer to an incomplete type in a templated function apparently work? Understanding Static Assert on Pointers to Incomplete Types in Templated Functions When dealing with templates in C you might come across a peculiar situation w 2 min read 20-09-2024 18
std::is_trivially_copyable is too strong, what shall I use instead? Beyond std is trivially copyable When Bitwise Copying Isnt Enough When dealing with data structures in C you often need to ensure that copying an objects memory 3 min read 04-09-2024 16
std::is_same_v weirdly return false when true is expected using CRT pattern Unraveling std is same vs Unexpected Behavior A Deep Dive into Template Metaprogramming and Inheritance When working with template metaprogramming and inheritan 3 min read 01-09-2024 17