3
Variables
For a programming language, the type system encompasses the available types with their features and characteristics. Of course, the Rust type system has some unique characteristics that further the overall objective of the language: safeness, security, and scalability.
The type system impacts every aspect of the programming language. Mutability, for example, has a broad impact on the language. The type system is the thread that binds an application. For that reason, it is essential to have a thorough understanding of the sweeping type system in Rust.
Rust is a strongly typed language. As such, variables are statically typed. The variable’s type is determined at declaration and cannot be changed afterwards. Even with type inference, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access