Welcome to Day 3
์ด๋ฒ ๊ฐ์๋ Rust์ ๋ฉฐ๊ฐ์ง ๊ณ ๊ธ ์ฃผ์ ๋ฅผ ๋ค๋ฃน๋๋ค:
- ํธ๋ ์ดํธ: ํธ๋ ์ดํธ ํ์(derive), ๊ธฐ๋ณธ ๋ฉ์๋, ์ฃผ์ ํ์ค๋ผ์ด๋ธ๋ฌ๋ฆฌ ํธ๋ ์ดํธ
- ์ ๋๋ฆญ: ์ ๋๋ฆญ ๋ฐ์ดํฐ ํ์ , ์ ๋๋ฆญ ๋ฉ์๋, ๋จํํ(monomorphization), ๊ทธ๋ฆฌ๊ณ ํธ๋ ์ดํธ ๊ฐ์ฒด
- ์ค๋ฅ์ฒ๋ฆฌ(์๋ฌ ํธ๋ค๋ง): ํจ๋,
Result
,?
์ฐ์ฐ์(์ํ ์ฐ์ฐ์) - ํ ์คํธ: ๋จ์ ํ ์คํธ, ๋ฌธ์ ํ ์คํธ ๋ฐ ํตํฉ ํ ์คํธ
- ์์ ํ์ง ์์ ๋ฌ์คํธ: ์์(raw) ํฌ์ธํฐ, ์ ์ ๋ณ์, ์์ ํ์ง ์์ ํจ์, ์ธ๋ถ ํจ์
Today, we will cover some more advanced topics of Rust:
- Traits: deriving traits, default methods, and important standard library traits.
- Generics: generic data types, generic methods, monomorphization, and trait objects.
- Error handling: panics,
Result
, and the try operator?
.- Testing: unit tests, documentation tests, and integration tests.
- Unsafe Rust: raw pointers, static variables, unsafe functions, and extern functions.