At last, the conclusion of this epic (or at least epically-difficult-to-finish-writing) deep dive on Rust's trait system! Closure traits, impl trait
, dyn trait
, and object safety!
Listen:
http://www.podtrac.com/pts/redirect.mp3/cdn.newrustacean.com/e025.mp3
Direct downloads:
7 Likes
Thanks, that's exactly what I'm dealing with here - asynchronous - How to introduce trait indirection with futures? - Stack Overflow
If I want to use different implementations of a trait, the compiler wouldn't know the size of the returned value and thus it would not be able to place it on the stack. I guess I must say bye bye to my C# habits.
1 Like