Beginner's Guide to Rust Data Types and Variables 🦀

Published 2023-08-11
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 Tutorial 🦀  

📖 Rust Programming Language: doc.rust-lang.org/book/ch03-02-data-types.html
📖 Rust Reference: doc.rust-lang.org/reference/types.html

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
➡️ twitter.com/pcgeek86
➡️ youtube.com/trevorsullivan
➡️ facebook.com/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

All Comments (18)
  • @liquidmobius
    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!
  • @fuhrmanns
    Your videos are really well done and the way you explain makes it easy to follow. Thanks!
  • @sdlfljdfkl
    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.
  • @user-uv6wv7xz4q
    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 !!
  • 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.
  • @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.
  • @ashisharya65
    Hi @TrevorSullivan, Great Video. Could you please let us know the features which has made you to learn Rust programming language.
  • @falkenxx
    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?
  • @pranithreddy
    How is your code getting auto compelete any free tool.
  • @drac8854
    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?