Rust 063 const generics - 長さが型の一部になる episode artwork

EPISODE · Sep 3, 2026 · 10 MIN

Rust 063 const generics - 長さが型の一部になる

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

第63章へようこそ。今日のテーマは「const generics」です。第10章で、型をパラメータにする仕組みを見ました。定義するときには型を決めず、使うときに決める。要素の型が違うだけで同じ処理を書き直すことは、これでなくなりました。だが、型パラメータでは抽象化できないものがある。配列の長さだ。要素が3つの配列を受け取る関数に、要素が4つの配列は渡せない。今日扱うのは、なぜ長さが型を分けるのか、その長さをどうやってパラメータにするのか、パラメータに取れる値がなぜ限られるのか、長さを型に残すか実行時に持つかをどう決めるのか、そして型に残すと何が消えるのか、です。

Episode metadata supplied by the publisher feed · Published Sep 3, 2026

Embed this episode

Ready to play

Rust 063 const generics - 長さが型の一部になる

0:00 10:42

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 10 minutes long.

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

This episode was published on September 3, 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!