Rust: Associated types for Iterator implementations
HTML-код
- Опубликовано: 5 фев 2025
- This video explains how to understand type bounds for standard library types around iterator traits. This will cover associated types, blanket trait implementations, and how these relate to the type-bound syntax, by using examples from Iterator, IntoIterator, and Flatten.
You can find the transcript of the video as a blog post at this link:
catalin-tech.c...
Blog post with transcript:
catalin-tech.com/std-lib-bounds/
Very well done video!!! Very nice. Keep these up. We need more intermediate videos on rust. Thank you.
Thank you so much!! Will do!
I'm happy to see this topic being covered. I used some concepts here myself making my own crate.
Glad you found it useful! Thanks for letting me know.
Amazing video! :D Thank you, I was really entertained. I love type system of Rust, so I could watch these kind of videos all day!
Thank you so much! I can also just geek out on Rust's type system. I do want to do more of this - though it can be difficult to find good examples that can be packaged neatly into a video.
Very nice video and great explanation ! Thank you
all that is missing is a small implementation of an iterator at the end but i'm just nitpicking :)
Thanks, glad you enjoyed it. To be honest, towards the end of recording, I kind of got tired of saying the word "iterator" :D Hmm, I wanted to focus on the trait bounds specifically, though I did cover some tangential stuff around iterators. I think I did it in the previous video, though I didn't give a practical example with showcasing the iteration logic. I felt like there are many details to cover for a realistic implementation scenario (most of the stuff that's iterable already implements Iterator or IntoIterator) and didn't want to spread the topics too much.
Thank you for watching and reaching out!
I just started learning and making videos about Rust, and this video is very helpful.
Glad it was useful! Hope you have fun learning!
Great video, we need more of this xD
Thank you so much! Working on it :)
This is a very good video! Can you telll us what you used for creating these animations for slides and the code highlighting synced with audio?
Thank you! I used:
motioncanvas.io/
The animations have to be made using code, but the synching is done by clicking and dragging in the render interface. The code animations use this component:
motioncanvas.io/docs/code-block/