Rust HashMap and HashSet Collection Types 🦀

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 9

  • @TrevorSullivan
    @TrevorSullivan  ปีที่แล้ว +3

    Check out the full Rust playlist for more Rust programming videos! 🦀 ➡➡➡➡ th-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. ✝️

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

  • @oladapooyin1238
    @oladapooyin1238 3 หลายเดือนก่อน

    Thank you Trevor!

  • @ojoawojoshua780
    @ojoawojoshua780 4 หลายเดือนก่อน +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