Scalar

Scalar data type is a subset of data type that consists of exactly 1 value. Rust has 4 primary scalar data types:

  • Integers:
    • Number without fraction component

    • isize or usize depends on the architecture of the computer the program is running on. For 32-bit architecture it’s 32 bits. 64 bits for 64-bit arch.

    • There are many forms in declaring an integer:

  • Floats
  • Booleans
  • Characters