2. 数当てゲームを書いてみる #2
lemonadern
started this conversation in
General
Replies: 3 comments 3 replies
-
変数の生成let mut guess = String::new();
結果的に、この記述では空のStringオブジェクトに束縛された可変変数を生成している。 |
Beta Was this translation helpful? Give feedback.
2 replies
-
外部クレートの利用クレートとは、Rustコードのパッケージ
セマンティックバージョニング
外部依存があるときは
|
Beta Was this translation helpful? Give feedback.
0 replies
-
シャドーイング Shadowing
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
ライブラリ読み込み
use
で明示的に利用use std::io;
なら、標準ライブラリstd
の中のio
ライブラリをスコープに導入する値を変数に保持
mut
をつける (mutable)Beta Was this translation helpful? Give feedback.
All reactions