Rust 006 StructとEnum - データに形を与える episode artwork

EPISODE · Apr 18, 2026 · 13 MIN

Rust 006 StructとEnum - データに形を与える

from 聞き流しプログラミング言語学習 · host ますたーさん

第6章へようこそ。今日のテーマはstructとenum、つまり構造体と列挙型、です。ここまでの章で、i32やString、boolといった型を使ってきました。これらはRustが最初から用意している型です。しかし実際のプログラムでは、これだけでは足りない。ユーザーの名前と年齢とメールアドレスを1つにまとめて扱いたい。処理の結果が「成功」「タイムアウト」「認証失敗」のどれかであることを型で表したい。structとenumは、プログラマが自分で型を定義するための仕組みです。structは「これらのデータをすべて持つ」型を作る。enumは「これらの可能性のうちどれか1つ」を表す型を作る。この「すべて」と「どれか1つ」の区別が、今日の章の核心です。

Episode metadata supplied by the publisher feed · Published Apr 18, 2026

Embed this episode

NOW PLAYING

Rust 006 StructとEnum - データに形を与える

0:00 13:09

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of 聞き流しプログラミング言語学習?

This episode is 13 minutes long.

When was this 聞き流しプログラミング言語学習 episode published?

This episode was published on April 18, 2026.

Can I download this 聞き流しプログラミング言語学習 episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!