Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

사용자 정의 타입

Rust의 사용자 정의 데이터 타입은 주로 다음 두 키워드를 통해 형성됩니다:

  • struct: 구조체를 정의합니다
  • enum: 열거형을 정의합니다

상수는 conststatic 키워드를 통해 생성할 수 있습니다.