rust

A collection of 3 posts
rust | immutable | shadowing

Variable & Data Types in Rust

Rust에서 변수의 특징은 기본적으로 immutable 이라는 것과 shadowing을 허용한다는 것 이다. 변수 선언을 위한 Syntax는 아래와 같다. let variable_name: dataType = value; Data Type들 중 기본적인 Scalr Type과 Compound Type(tuple, array)들에 대해서는 아래에서 확인하면 된다. https://doc.rust-lang.org/book/ch03-02-data-types.html 변수 선언시 dataType은 상황에 따라서는 생략
1 min read