Это видео недоступно.
Сожалеем об этом.
Practising Type Constraints | Rust Language
HTML-код
- Опубликовано: 13 авг 2024
- This is a video showing type constraints used with with impl in a function.
I show code that defines a generic function `print_iter` to print each item from an iterator that implements the `Debug` trait.
The `main` function demonstrates its usage by passing iterators of vectors of different types to `print_iter`.
Rust Docs:
🟩 doc.rust-lang.org/book/ch10-0...
I'm learning Rust, so check your own books/resources as well, these videos are hopefully providing a beginner - intermediate view of someone learning Rust and raising some new ideas/questions to explore once you've watched this?
Gist of code on GitHub
🟩 gist.github.com/RGGH/e19de4be...
Thumbs up if you liked the video (cos algos!)
#rustprogramming #rustlang #generics #cosAlgos # LearningRust