Lets Learn Rust - 5 - The Integer Data Type
G'day guys
In this video I talk about the integer data type in Rust. I explain both signed an unsigned integers as well as how many bytes each stores, how Rust deals with overflow issues at compile time and much more.
We talk about the following data types specifically:-
- i32 - The default integer type.
- i8
- i16
- i64
- i128
- isize (And how it works for both 32 and 64 bit systems)
- u8
- u16
- u32
- u64
- u128
- usize (Again and how it works for both 32 and 64 bit systems)
Important Times
00:00 - Introduction
01:24 - Declaring and initializing an integer implicitly
03:20 - Understanding how numbers are stored in signed integers
05:36 - Understanding overflow and the compiler
07:24 - Listing all available signed integer types
08:06 - Brief description of the isize type
08:51 - Explanation of unsigned integer types
11:09 - Listing all available unsigned integer types
11:32 - Looking at sizes and number ranges of each integer type
14:27 - Exploring isize and usize on a 32 bit Ubuntu machine
15:47 - When to use each integer type
19:11 - Conclusion
-
LIVE
Drew Hernandez
1 hour agoMELTDOWN: LEFTISTS PANIC AFTER SCOTUS TRUMP RULING
2,032 watching -
28:43
Stephen Gardner
2 hours ago🔴BREAKING: Obama is TERRIFIED of THIS COVER UP Leaking!
9.92K72 -
35:29
Candace Owens
4 hours agoWhy I Left This Religion | Candace Ep 16
11.9K71 -
1:00:59
Lou Dobbs
4 hours agoLou Dobbs Tonight 7-1-2024
23.5K54 -
1:48:30
Donald Trump Jr.
10 hours agoJill & Joe Have Dems Pressing the Panic Button, Taking Your Questions live! | TRIGGERED Ep.150
142K332 -
2:36:18
WeAreChange
4 hours agoBlack Sex Magic Explained... And Elite Satanic Pedo Culture Exposed!
44.6K23 -
50:14
Kimberly Guilfoyle
7 hours agoLandmark Supreme Court Immunity Case, Plus Dems' Prop 47 Madness, Live with Jesse Binnall & ASM Bill Essayli | Ep. 138
54.2K31 -
1:03:39
In The Litter Box w/ Jewels & Catturd
1 day agoBidens Blame Staff | In the Litter Box w/ Jewels & Catturd – Ep. 598 – 7/1/2024
100K58 -
7:03:22
Akademiks
13 hours agoDrake's Goons Run Down on Rick Ross in Vancouver! PND vs Chris Brown. Wunna a Rat? Foolio Alive?
126K25 -
13:32
Bearing
12 hours ago"Biden Totally Won" Lefties COPE HARD Over Trump Debate
34.8K34