Rust HashMap and HashSet Collection Types 🦀

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 9

  • @TrevorSullivan
    @TrevorSullivan  Рік тому +3

    Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ ua-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html

  • @fabricehategekimana5350
    @fabricehategekimana5350 Рік тому +3

    I am very grateful for the work you do! The quality and resources are great. God bless you

    • @TrevorSullivan
      @TrevorSullivan  Рік тому +2

      You are very kind. Thank you so much for your support. God bless you and keep you as well. ✝️

  • @oladapooyin1238
    @oladapooyin1238 2 місяці тому

    Thank you Trevor!

  • @shailendrajadhav8603
    @shailendrajadhav8603 Рік тому +3

    Thank you for creating this playlist; these are easy to understand examples. Would you consider creating a real world application using all these concepts?

    • @TrevorSullivan
      @TrevorSullivan  Рік тому +2

      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! 🦀🦀

  • @ojoawojoshua780
    @ojoawojoshua780 3 місяці тому +1

    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.

  • @MH-bw9lh
    @MH-bw9lh Рік тому +1

    Hi Sullivan, when removing the "AAPL".to_string() from the stock list, why a & is needed ?🤔

    • @TrevorSullivan
      @TrevorSullivan  Рік тому +3

      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