This video talks about the scalar data types available in Rust and how you can make use of them.
- [Presenter] Every value in Rust is of a certain type,…which tells the compiler…what kind of data is being specified…so it knows how to work with that data.…There are a number of types that are built into the language…and we'll see them now.…We split the types into two subsets,…scalar and compound.…Let's see the scalar types in this video…and the compound types in the next one.…Do remember that Rust is a statically typed language,…which means that it must know the types of…all variables at compile time.…
The compiler can usually infer what type we want to use…based on the value and how we use it.…A scalar type represents a single value.…Rust has four primary scalar types.…Integers, floating-point numbers,…booleans, and characters.…You'll likely recognize these from…other programming languages,…but let's jump into how they work in Rust.…So let's create a new file…and let's call it integers.rs…and save it in our samples directory.…
As seen in the previous video,…the first function is main…and inside that you write code.…
- Installing Rust
- Data types
- Adjusting memory allocation
- Setting up race conditions
- Working with functions
- Exploring references and borrowing
- Using structs
- Method syntax
- Demonstrating recoverable errors with Result
- Working with enums
- Getting user input
Skill Level Beginner
Programming Foundations: Data Structures (2014)with Simon Allardice2h 29m Intermediate
1. Hello, Rust!
2. Basic Programming Concepts
3. Ownership in Rust
4. Data Handling and Pattern Matching in Rust
5. Error Handling
6. Sample Rust Project: The Guessing Game
Next steps1m 14s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.