Created
October 2, 2024 05:23
-
-
Save thatisuday/552b88086f03d80058fb2779a61425e9 to your computer and use it in GitHub Desktop.
Unsigned Integer Data Types in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Data Type | Bit Size | Min Value | Max Value | |
---|---|---|---|---|
u8 | 8 | 0 | 255 | |
u16 | 16 | 0 | 65_535 | |
u32 | 32 | 0 | 4_294_967_295 | |
u64 | 64 | 0 | 18_446_744_073_709_551_615 | |
u128 | 128 | 0 | 340_282_366_920_938_463_463_374_607_431_768_211_455 | |
usize | Platform-dependent (32 or 64 bits) | 0 | Depends on architecture |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment