Variables - Rust Programming #rustlang #shorts

preview_player
Показать описание
In rust you can create variables by using the let keyword. You can also define its type. However, rust can infer the type,so you don't have to define it.

Mutability
Variables are immutable by default. If you want to change the value of a variable, you have to define it as mutable.

Constants
You can create constant variables by using the const keyword. For consts, you must define the type.

Number Types
There are many number types in rust. Signed integers can be positive or negative, while unsigned integers can only be positive. Floats are decimal numbers. You can also have 32 bit numbers or 64 bit numbers. i-size and u-size take memory depending on the system. They will be 32 bit on 32 bit systems and 64 bit on 64 bit systems.

#coding #rustprogramming #variables
Рекомендации по теме
Комментарии
Автор

Great content! What are you using to create the videos? I love it!

victorgarcia
join shbcf.ru