Intro to Developing User-Defined Rust Structs 🦀

Поділитися
Вставка
  • Опубліковано 10 лип 2024
  • Rust structs enable developers to define custom data types, with a variety of attributes describing the struct's state. Rust structs define zero or more "fields" which each contain data of a specified data type. Data types can include the core Rust data types, or user-defined types including enums or other struct definitions.
    Rust structs are like blueprints of an object, whereas struct "instances" are unique occurrences of the blueprint. A struct can represent any real-world concept, such as a house, car, person, or any other entity. The fields and data types defined on each struct determine the "shape" of the data.
    🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
    📖 Rust Structs: doc.rust-lang.org/book/ch05-0...
    📖 Rust Cell Type: doc.rust-lang.org/std/cell/st...
    Visual Studio Code ➡️ code.visualstudio.com
    Rust Website ➡️ rust-lang.org
    Rustup Installer ➡️ rustup.rs
    Rust Docs ➡️ doc.rust-lang.org/book
    Please follow me on these other social channels!
    ➡️ trevorsullivan.net
    ➡️ github.com/pcgeek86
    ➡️ / pcgeek86
    ➡️ / trevorsullivan
    ➡️ / trevorsoftware
    ➡️ tiktok.com/pcgeek86
    All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
    #rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer
  • Наука та технологія

КОМЕНТАРІ • 25

  • @TrevorSullivan
    @TrevorSullivan  10 місяців тому

    Check out the FULL Rust video playlist! 🦀 ua-cam.com/play/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL.html

  • @Exidiful
    @Exidiful 9 місяців тому +5

    If everyone know this channel. No one would ever say rust is hard.
    Thanks a lot mate, because of you Im finally figuring out rust and making real apps. Really appreciate it ❤

    • @TrevorSullivan
      @TrevorSullivan  9 місяців тому +3

      Wow, that is some high praise! That means a lot to me. Thank you, mate.

    • @vonmakeheat
      @vonmakeheat 7 місяців тому

      nah frfr he literally taught me the language in a day!!!

    • @mssafy2592
      @mssafy2592 Місяць тому

      100% , I swear I've read the rust book and watched many courses and nothing like this playlist !!!!!!

  • @WanjikuKimani-pe8eh
    @WanjikuKimani-pe8eh Місяць тому

    You have amazing rust content🙌

  • @lordmelbury7174
    @lordmelbury7174 7 місяців тому +2

    Cheers Trevor! - Subscribed!

    • @TrevorSullivan
      @TrevorSullivan  7 місяців тому +1

      😊 thank you for your support!! I hope this channel has been helpful for you.

  • @pratikkulkarni891
    @pratikkulkarni891 7 місяців тому

    Thank you! This was one of the most structured videos I have seen on this topic, appreciate it.

  • @dabunnisher29
    @dabunnisher29 3 місяці тому

    This whole Rust tutorial series is amazing. Thank you so much for all your hard work and time on it.

    • @TrevorSullivan
      @TrevorSullivan  3 місяці тому

      Thank you! It is a lot of work, but it's people like you who motivate me to keep on going. I appreciate your comment, and I'm glad you're learning Rust! 🥰🦀

  • @hohojei1
    @hohojei1 10 місяців тому +2

    I like your video as the explanation is clear~~ Thanks for the work

  • @DieDona
    @DieDona 5 місяців тому +1

    thank you!

  • @scottb4029
    @scottb4029 7 місяців тому

    Thank you so much! I have been trying to get the idea of options to work in my head. I have awesome mentors but I just keep blocking. This broke it down!

  • @anjonsarker2374
    @anjonsarker2374 10 місяців тому

    Fine

  • @riigel
    @riigel 4 місяці тому

    everything is fine until 37:43 , I got lost on that 😂, excellent tutorial tho! thanks so much!

    • @TrevorSullivan
      @TrevorSullivan  4 місяці тому +3

      Lifetimes are definitely challenging to understand at first. Basically it's a way for a developer to declare how long a particular value needs to "live" for, relative to other values. At some point I'll need to make a dedicated video to this topic. I still can't figure out how to explain it in an easy to understand way! 😆

    • @riigel
      @riigel 4 місяці тому +1

      @@TrevorSullivan oh man! yes please! I've been struggling recently on lifetimes.. At first, I think I got it, then when I try it myself everything went south so fast 🤣

    • @Gj1118
      @Gj1118 3 місяці тому

      @@TrevorSullivan Please do so. Even I got lost at the exact same minute. Thanks a ton . Following this series quire religiously. Thanks once again.

    • @TrevorSullivan
      @TrevorSullivan  3 місяці тому

      @@Gj1118 thank you! If I ever figure out a good use case for specifying lifetimes, I'll do a video on that topic to clarify things. I hope you've learned something aside from that! I appreciate your support.

  • @salaar-zj2ks
    @salaar-zj2ks Місяць тому

    Did you made any video on liferimes?

    • @TrevorSullivan
      @TrevorSullivan  Місяць тому +1

      Hi there! No I have not made any videos dedicated to lifetimes yet. Thanks for checking!

    • @salaar-zj2ks
      @salaar-zj2ks Місяць тому +1

      @@TrevorSullivan Can you please make one on Lifetimes and Futures topics

    • @TrevorSullivan
      @TrevorSullivan  Місяць тому +1

      @@salaar-zj2ks I already have a video on async futures! Actually two videos. I will certainly consider making one on lifetimes. I know that some other creators have already covered this topic fairly well.

    • @salaar-zj2ks
      @salaar-zj2ks Місяць тому

      @@TrevorSullivan great thanks for your efforts