Beginner's Guide to Rust Data Types and Variables 🦀

Ғылым және технология

This video covers the core data types in the Rust programming language. We will discuss things like the Rust unit type, booleans, integers, floating point values, characters, string pointers, type coercion, variable mutability, and more!
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
📖 Rust Programming Language: doc.rust-lang.org/book/ch03-0...
📖 Rust Reference: doc.rust-lang.org/reference/t...
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.
#opensource #software #linux #devops #programming #rusty #rustdev #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #rustlang #rust #developer

Пікірлер: 25

  • @fuhrmanns
    @fuhrmanns8 ай бұрын

    Your videos are really well done and the way you explain makes it easy to follow. Thanks!

  • @liquidmobius
    @liquidmobius2 ай бұрын

    You seriously have the best Rust tutorials on YT! I'm really struggling with strings, more specifically the difference between String and &str (string slice), how are they defined and implemented, how to reference them, and how to work with them in general, especially regarding i/o. I'm sure you're really busy, but maybe you could consider covering this in a video. Thanks!

  • @jasonbraithwaite9204
    @jasonbraithwaite9204Ай бұрын

    Excellent tutorial, very well explained, thank you for this :)

  • @sdlfljdfkl
    @sdlfljdfkl3 ай бұрын

    I just discovered your videos, and I like them! Clear and to the point! I would rather say that the unit type is a type with only one value, so it's not really empty. And that value is the empty tuple: so the unit type is the type of the empty tuple.

  • @RadicalInteger
    @RadicalInteger8 күн бұрын

    this was a great tutorial

  • @yotubecreators47
    @yotubecreators4710 ай бұрын

    Super helpful! thank you

  • @TrevorSullivan
    @TrevorSullivan10 ай бұрын

    Check out the full Rust programming playlist! 🦀 kzread.info/head/PLDbRgZ0OOEpUkWDGqp91ODn0dk7LPBAUL

  • @0x72F

    @0x72F

    25 күн бұрын

    thank you very much, trevor! youre awesome! really appreciate it

  • @user-uv6wv7xz4q
    @user-uv6wv7xz4q3 ай бұрын

    i was struggling to find a good course on rust as i am learning as my first programming language kind of, i do have a bit knowledge in c++ as i am doing competitive programmer(a beginner though), done no projects so i was struggling to get a course which will consider that someone might be learning some concepts for the first time. hope you continue growing and keep helping others !!

  • @ricardonogueira2213
    @ricardonogueira22133 ай бұрын

    Nice content. Just would like to point out that signed ints don't have a bit to mark the sign. They are just interpreted differently. The number range is interpreted differently but both signed and unsigned (i8 and u8) have 256 possible values.

  • @TrevorSullivan

    @TrevorSullivan

    3 ай бұрын

    Oops, duh. That was a dumb mistake. Thanks for pointing that out

  • @simonkalu
    @simonkalu3 ай бұрын

    Awesome...

  • @ashisharya65
    @ashisharya6510 ай бұрын

    Hi @TrevorSullivan, Great Video. Could you please let us know the features which has made you to learn Rust programming language.

  • @TrevorSullivan

    @TrevorSullivan

    10 ай бұрын

    Hello Ashish! Thank you for your kind comment. Rust is a lower level compiled language that offers much higher performance than interpreted scripting languages.

  • @smartwashington1455
    @smartwashington14556 ай бұрын

    ❤ wonderful

  • @mozark1043
    @mozark1043Ай бұрын

    Small question, How do you get the lint suggestions on the same line as the code (in red)? I have to hover my mouse over the squiggly lines but I really like the way yours is shown.

  • @TrevorSullivan

    @TrevorSullivan

    Ай бұрын

    I think that's from an extension called Error Lens. I agree it's really nice to see it on the same line!

  • @falkenxx
    @falkenxx2 ай бұрын

    My version of rust-analyzer (latest as of this posting) does not show the red highlighted error text snippet, I have to roll over the error zone to get a popup with the error. How did you configure yours to do the red error text snippet overlay?

  • @TrevorSullivan

    @TrevorSullivan

    2 ай бұрын

    Good question! I just had to look that up myself. I have the Error Lens extension installed. Apparently that is what enables that functionality, showing the error text on the line!

  • @movieland8513
    @movieland85138 ай бұрын

    what is the theme vs?

  • @TrevorSullivan

    @TrevorSullivan

    8 ай бұрын

    It's called Outrun in the extension marketplace!

  • @drac8854
    @drac88547 ай бұрын

    10:45 by using "as" does it convert value of x to u8 or it just takes the u8 part of x and subtract 5 from it and asgine it to y?

  • @Hellbending

    @Hellbending

    5 ай бұрын

    It is a type conversion that’s handled at compile time when being changed to assembly/byte code. There is no direct number of ‘5’ in binary, its 0101. Sizing of digits (unsigned or otherwise) are only relevant to the compiler to know how many “slots” the digit has access to/can take up. Take 8 slots for instance, it can only store 255 as a maximum cos there literally no other space for digits in a register that large/small (11111111) for instance. If you want to go higher you either need more slots, or you cause ‘buffer overflow’ which means it wraps around and is why in some games if you say… hack your money or it bugs out you end up with negative money. Because the value went over whatever the maximum was and went from a positive integer to a negative one due to overflowing and wrapping around.

  • @pranithreddy
    @pranithreddy26 күн бұрын

    How is your code getting auto compelete any free tool.

  • @TrevorSullivan

    @TrevorSullivan

    26 күн бұрын

    Yes check out my first video on Rust, where we talk about the Rust Analyzer extension for VSCode!

Келесі