Welcome to Day 2
์๋นํ ๋ถ๋์ ๋ฌ์คํธ์ ๋ํด ๋ณด์๊ณ , ์ด์ด์ ์ค๋ ๊ฐ์๋ฅผ ์งํํ๊ฒ ์ต๋๋ค:
-
๊ตฌ์กฐ์ฒด, ์ด๊ฑฐํ, ๋ฉ์๋
-
ํจํด ๋งค์นญ: ์ด๊ฑฐํ, ๊ตฌ์กฐ์ฒด ๊ทธ๋ฆฌ๊ณ ๋ฐฐ์ด ๋ถํด
-
ํ๋ฆ ์ ์ด:
if
,if let
,while
,while let
,break
, ๊ทธ๋ฆฌ๊ณcontinue
. -
ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ::
String
,Option
๊ณผResult
,Vec
,HashMap
,Rc
๊ทธ๋ฆฌ๊ณArc
. -
๋ชจ๋: ๊ฐ์์ฑ, ๊ฒฝ๋ก ๋ฐ ํ์ผ ์์คํ ๊ณ์ธต.
Now that we have seen a fair amount of Rust, we will continue with:
Structs, enums, methods.
Pattern matching: destructuring enums, structs, and arrays.
Control flow constructs:
if
,if let
,while
,while let
,break
, andcontinue
.The Standard Library:
String
,Option
andResult
,Vec
,HashMap
,Rc
andArc
.Modules: visibility, paths, and filesystem hierarchy.