Rust Time Module and Chrono Crate Intro 🦀

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

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

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

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

  • @damianolmedo9248
    @damianolmedo9248 11 หลายเดือนก่อน

    thank you, I was learning rust by doing a mini project and the truth is that you are very helpful!

  • @OferSadan85
    @OferSadan85 ปีที่แล้ว +1

    If im not mistaken, extern crate is no longer needed. You can just "use chrono" as if it was an std crate or a module if it's installed
    Thx for the great content!

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

      Thank you for the tip!! I figured it was needed based on some older content then. Rust on!! 🦀🦀

  • @pashok1641
    @pashok1641 ปีที่แล้ว +1

    thank you for the video, watched a whole thing in one sitting!

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

      Thanks for your support!! I'm glad you benefitted from this series! 🙂

  • @RolandHaller
    @RolandHaller 10 หลายเดือนก่อน

    That was really useful, thank you.

  • @DBZM1k3
    @DBZM1k3 ปีที่แล้ว +1

    Hi! The .ok() value you use at the end is unnecessary actually! You could just call unwrap() on the Result .ok() converts a result into an Option which is useful in when you are using filter_map or flat_map so that you can discard bad values in a Vec. For instance, you could flat_map or filter_map over a Vec of strings you want converted to i32 via the parse() function. You can call .ok() after the parse to convert to Option which is what flat_map and filter_map will take.

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

      Thank you for sharing your knowledge! I'm still picking up tips and tricks each and every day 🙂

  • @hanyanglee9018
    @hanyanglee9018 5 หลายเดือนก่อน

    Opt = optimized ? Im not sure.