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...

Комментарии • 15

  • @CataBits
    @CataBits  Год назад

    Blog post with transcript:
    catalin-tech.com/std-lib-bounds/

  • @joebuydem
    @joebuydem Год назад +6

    Very well done video!!! Very nice. Keep these up. We need more intermediate videos on rust. Thank you.

    • @CataBits
      @CataBits  Год назад

      Thank you so much!! Will do!

  • @abhishekshah11
    @abhishekshah11 Год назад +1

    I'm happy to see this topic being covered. I used some concepts here myself making my own crate.

    • @CataBits
      @CataBits  Год назад

      Glad you found it useful! Thanks for letting me know.

  • @mzg147
    @mzg147 Год назад

    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!

    • @CataBits
      @CataBits  Год назад +1

      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.

  • @Tarekconqueso
    @Tarekconqueso Год назад +2

    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 :)

    • @CataBits
      @CataBits  Год назад +1

      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!

  • @mohaniya15
    @mohaniya15 Год назад

    I just started learning and making videos about Rust, and this video is very helpful.

    • @CataBits
      @CataBits  Год назад

      Glad it was useful! Hope you have fun learning!

  • @ikhlasulkamal5245
    @ikhlasulkamal5245 Год назад

    Great video, we need more of this xD

    • @CataBits
      @CataBits  Год назад

      Thank you so much! Working on it :)

  • @korigamik
    @korigamik Год назад

    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?

    • @CataBits
      @CataBits  Год назад

      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/