Rust 학습 경로

구조체, 열거형, 트레이트

구조체와 열거형으로 데이터를 모델링하고, 패턴 매칭을 쓰고, Option과 Result를 다루고, 트레이트와 제네릭으로 동작을 공유합니다.

Rust 온라인으로 실행해 보기

레슨 8개

Structs

Group related values into your own type with named fields.

레슨 보기 →

Enums

Define a type that is one of several variants, each with its own data.

레슨 보기 →

Traits

Describe shared behavior with a trait and implement it for different types.

레슨 보기 →

Generics

Write one function or struct that works with many types.

레슨 보기 →