Focus mode
Fixed-Width Numeric Types: As in most popular programming languages, there are fixed-width number data definition types compatible with hardware (32Bit, 64Bit, etc.) in Rust. (u8/i8, u16/i16, u32/i32, u64/i64, u128/i128, usize/isize, f32, f64)
Integer Types: Signed and unsigned integers of various sizes. Keywords uint8 to uint256 in steps of 8 (unsigned of 8 up to 256 bits) and int8 to int256. uint and int are aliases for uint256 and int256, respectively.
Floating-Point Types: Rust's floating-point types are f32 and f64, with sizes of 32 and 64 bits, respectively. The default type is f64 since it has nearly the same performance as f32 but can handle better accuracy on contemporary CPUs.
Numeric Operations: Provides the standard mathematical operations for all number types, including addition, subtraction, multiplication, division, and remainder.
The Character Type: Basic alphabetic type.
The Boolean Type: The possible values are constants true and false.
Optional Resources
To understand better primitive types you can watch these videos:
Programs to Accelerate Your Progress in a Software Career
Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!
You need to enroll in the course to be able to comment!