Thank you for creating this playlist; these are easy to understand examples. Would you consider creating a real world application using all these concepts?
Thank you! Yes, I would certainly consider creating a full application. I'm focusing on the core concepts of Rust for now, but once we cover most of those, I'll create some practical Rust applications! Rust on! 🦀🦀
That's an excellent question. I believe the simplest answer is that the .remove() method signature requires a borrow of the underlying key type. In this case, my HashMap key was of type String, so in order to satisfy the method signature, I had to use &String. That is essentially what the documentation says here doc.rust-lang.org/stable/std/collections/struct.HashMap.html#method.remove
Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ ua-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html
I am very grateful for the work you do! The quality and resources are great. God bless you
You are very kind. Thank you so much for your support. God bless you and keep you as well. ✝️
Thank you Trevor!
Thank you for creating this playlist; these are easy to understand examples. Would you consider creating a real world application using all these concepts?
Thank you! Yes, I would certainly consider creating a full application. I'm focusing on the core concepts of Rust for now, but once we cover most of those, I'll create some practical Rust applications! Rust on! 🦀🦀
Pls can you create how to build a full backend system in rust and also how to build a smart contract more like DAPPs etcs in rust.
Hi Sullivan, when removing the "AAPL".to_string() from the stock list, why a & is needed ?🤔
That's an excellent question. I believe the simplest answer is that the .remove() method signature requires a borrow of the underlying key type. In this case, my HashMap key was of type String, so in order to satisfy the method signature, I had to use &String. That is essentially what the documentation says here doc.rust-lang.org/stable/std/collections/struct.HashMap.html#method.remove