@@ -35675,13 +35675,15 @@ <h1 id="高度な機能"><a class="header" href="#高度な機能">高度な機
35675
35675
* Advanced types: more about the newtype pattern, type aliases, the never type,
35676
35676
and dynamically sized types
35677
35677
* Advanced functions and closures: function pointers and returning closures
35678
+ * Macros: ways to define code that defines more code at compile time
35678
35679
-->
35679
35680
<ul>
35680
35681
<li>Unsafe Rust: Rustの保証の一部を抜けてその保証を手動で保持する責任を負う方法</li>
35681
35682
<li>高度なライフタイム: 複雑なライフタイム状況の記法</li>
35682
35683
<li>高度なトレイト: 関連型、デフォルト型引数、フルパス記法、スーパートレイト、トレイトに関連するニュータイプパターン</li>
35683
35684
<li>高度な型: ニュータイプパターンについてもっと、型エイリアス、never型、動的サイズ決定型</li>
35684
35685
<li>高度な関数とクロージャ: 関数ポインタとクロージャの返却</li>
35686
+ <li>マクロ: コンパイル時に、より多くのコードを定義するコードを定義する方法</li>
35685
35687
</ul>
35686
35688
<!--
35687
35689
It’s a panoply of Rust features with something for everyone! Let’s dive in!
@@ -38165,25 +38167,9 @@ <h3 id="クロージャを返却する"><a class="header" href="#クロージャ
38165
38167
<p>このコードは、問題なくコンパイルできます。トレイトオブジェクトについて詳しくは、
38166
38168
第17章の「トレイトオブジェクトで異なる型の値を許容する」節を参照してください。</p>
38167
38169
<!--
38168
- ## Summary
38169
- -->
38170
- <h2 id="まとめ-18"><a class="header" href="#まとめ-18">まとめ</a></h2>
38171
- <!--
38172
- Whew! Now you have some features of Rust in your toolbox that you won’t use
38173
- often, but you’ll know they’re available in very particular circumstances.
38174
- We’ve introduced several complex topics so that when you encounter them in
38175
- error message suggestions or in other peoples’ code, you’ll be able to
38176
- recognize these concepts and syntax. Use this chapter as a reference to guide
38177
- you to solutions.
38170
+ Next, let’s look at macros!
38178
38171
-->
38179
- <p>ふう!もう道具箱に頻繁には使用しないRustの機能の一部がありますが、非常に限定された状況で利用可能だと知るでしょう。
38180
- エラーメッセージや他の方のコードで遭遇した際に、これらの概念や記法を認識できるように、
38181
- 複雑な話題をいくつか紹介しました。この章は、解決策へ導く参考文献としてご活用ください。</p>
38182
- <!--
38183
- Next, we’ll put everything we’ve discussed throughout the book into practice
38184
- and do one more project!
38185
- -->
38186
- <p>次は、本を通して議論してきた全てを実践に配備し、もう1つプロジェクトを<ruby>熟<rp>(</rp><rt>こな</rt><rp>)</rp></ruby>します!</p>
38172
+ <p>次は、マクロを見てみましょう!</p>
38187
38173
<div id="chapter_begin" style="break-before: page; page-break-before: always;"></div><!--
38188
38174
## Macros
38189
38175
-->
@@ -39046,7 +39032,7 @@ <h3 id="関数風マクロ"><a class="header" href="#関数風マクロ">関数
39046
39032
<!--
39047
39033
## Summary
39048
39034
-->
39049
- <h2 id="まとめ-19 "><a class="header" href="#まとめ-19 ">まとめ</a></h2>
39035
+ <h2 id="まとめ-18 "><a class="header" href="#まとめ-18 ">まとめ</a></h2>
39050
39036
<!--
39051
39037
Whew! Now you have some Rust features in your toolbox that you won’t use often,
39052
39038
but you’ll know they’re available in very particular circumstances. We’ve
@@ -42338,7 +42324,7 @@ <h3 id="スレッドに仕事をリッスンするのを止めるよう通知す
42338
42324
<!--
42339
42325
## Summary
42340
42326
-->
42341
- <h2 id="まとめ-20 "><a class="header" href="#まとめ-20 ">まとめ</a></h2>
42327
+ <h2 id="まとめ-19 "><a class="header" href="#まとめ-19 ">まとめ</a></h2>
42342
42328
<!--
42343
42329
Well done! You’ve made it to the end of the book! We want to thank you for
42344
42330
joining us on this tour of Rust. You’re now ready to implement your own Rust
0 commit comments