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
-
19:41
Cody and Kellie
22 hours ago48 Hours in Little Rock Arkansas (Why Would Anyone Want to Live Here)
1831 -
55:51
Science & Futurism with Isaac Arthur
22 hours ago $0.03 earnedTranscendence
5552 -
16:02
IsaacButterfield
1 day ago $0.06 earnedSHE WANTS TO GET BIGGER!!
4034 -
1:00:01
The Tom Renz Show
11 hours ago"The October Surprise - BRICS?"
715 -
38:57
The Pete Santilli Show
6 days agoThe Dollar is Worth 3 cents: The Government Doesn't Have The Solution, They CREATED The Problem
1.72K2 -
18:16
GameLeap RAID Shadow Legends
10 hours agoHow to BUILD A GOD-TIER NUKER - Best Stats and Gear - Raid Shadow Legends Beginner Guide
171 -
1:44
Memology 101
1 day ago $0.16 earnedAmerica did WHAT?!
1.14K24 -
11:51
Vigilant News Network
11 hours agoTroubling New Development Unfolds Surrounding Arizona Trump Rally | The Morning Catch-Up
1.93K10 -
2:47:17
Laura Loomer
11 hours agoEP77: IMMIGRATION CAT-ASTROPHE: Trump and Allies Heading to Springfield, OH
63.8K99 -
1:30:40
Roseanne Barr
13 hours ago“Fraud Vitiates Everything” with Mark Finchem | The Roseanne Barr Podcast #66
147K97