Rust HashMap and HashSet Collection Types 🦀

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2025

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

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

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

  • @fabricehategekimana5350
    @fabricehategekimana5350 ปีที่แล้ว +4

    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  ปีที่แล้ว +3

      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 6 หลายเดือนก่อน +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 5 หลายเดือนก่อน

    Thank you Trevor!

  • @shreyansh_shrivastva
    @shreyansh_shrivastva 28 วันที่ผ่านมา

    Thanks for the tutorial.
    However in stock_list.remove you didnt need to convert it to string and then pass the pointer as doing just "text" returns you a pointer. So thats an unnecessary step as far I understand.

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