官术网_书友最值得收藏!

Variable mutability

Unlike many other languages, Rust defaults to non-mutability of variables. That means that variable bindings are actually constants if not explicitly defined as mutable. The compiler checks against all variable mutations and refuses to accept mutating non-mutable variable bindings.

If you come from one of the C family of languages, a non-mutable can be considered to be roughly the same as a const type.

主站蜘蛛池模板: 镇安县| 腾冲县| 星座| 临夏市| 邻水| 万山特区| 张北县| 三穗县| 金塔县| 冀州市| 琼中| 平遥县| 扶绥县| 明光市| 菏泽市| 和顺县| 定远县| 游戏| 靖江市| 阜阳市| 桂林市| 全南县| 小金县| 平度市| 高邑县| 那坡县| 宜都市| 平湖市| 柘城县| 安乡县| 建宁县| 准格尔旗| 铁岭市| 城步| 巨野县| 依安县| 区。| 沾益县| 长葛市| 南京市| 武邑县|