Rustの変数はミュータブルな型な場合には同じ型の値を再代入できる。シャドーイングする場合には別の型の値を再度letで代入(じゃなくて束縛っていうのかな?)できる。慣れるのに時間がかかりそうだなあ…
The Rust Programming Language 日本語版
変数と可変性
https://doc.rust-jp.rs/book-ja/ch03-01-variables-and-mutability.html
Rustの変数はミュータブルな型な場合には同じ型の値を再代入できる。シャドーイングする場合には別の型の値を再度letで代入(じゃなくて束縛っていうのかな?)できる。慣れるのに時間がかかりそうだなあ…
The Rust Programming Language 日本語版
変数と可変性
https://doc.rust-jp.rs/book-ja/ch03-01-variables-and-mutability.html
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.