EPISODE · Aug 11, 2026 · 10 MIN
Rust 061 Cow - 必要になるまで複製しない
from 聞き流しプログラミング言語学習 · host ますたーさん
第61章へようこそ。今日のテーマは「Cow」です。第18章で、文字列を返す関数の戻り値をどう決めるかを見ました。新しく作ったものを呼び出し側に持ち帰らせるならString、借りたまま返すなら文字列スライス。戻り値の型は所有権の流れで決まる、と定めた。この原則で決められない関数がある。入力をそのまま返すこともあれば、加工したものを返すこともある関数だ。どちらになるかは、入力を見るまで決まらない。今日扱うのは、その決まらなさをどう型に持つのか、複製がいつ起きるのか、この型が何を要求するのか、そしてどういう流れで使う形なのか、です。
Embed this episode
NOW PLAYING
Rust 061 Cow - 必要になるまで複製しない
0:00
10:10
1×
No transcript for this episode yet
Similar Episodes
No similar episodes found.
Similar Podcasts
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 August 11, 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!