Rust 022 Rc - 共有所有権 episode artwork

EPISODE · May 4, 2026 · 11 MIN

Rust 022 Rc - 共有所有権

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

第22章へようこそ。今日のテーマは「Rc」です。RcはReference Countedの頭文字で、日本語にすれば参照カウントを持つ型ということ。前章で扱ったBoxは、ヒープ上のあたいに対して所有者が1人だけの型でした。ヒープを所有する型は所有者が1人というルールに従い、ムーブで所有権が移り、Copyトレイトを持たない。しかし、複数の場所から同じヒープ上のあたいを所有したい状況があります。グラフ構造で複数のノードが同じノードを指す。設定データを複数の処理が共有する。こういう構造を、所有者を1人に絞ったまま実現するのは難しい。このための型がRcです。今日はRcの内部構造、参照カウントの動き、cloneの意味、なぜ中身が読み取り専用なのか、なぜシングルスレッド専用なのかを扱います。

Episode metadata supplied by the publisher feed · Published May 4, 2026

Embed this episode

NOW PLAYING

Rust 022 Rc - 共有所有権

0:00 11:11

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

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

This episode was published on May 4, 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!