Rust HashMap and HashSet Collection Types 🦀

Поделиться
HTML-код
  • Опубликовано: 29 окт 2024

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

  • @TrevorSullivan
    @TrevorSullivan  Год назад +3

    Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ ruclips.net/p/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL

  • @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. ✝️

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

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

  • @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