File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ <h1 class="title">`Deref` による型強制</h1>
192
192
193
193
<!-- used to overload `*`, the dereference operator: -->
194
194
195
- < p > 標準ライブラリは特別なトレイト < a href ="../std/ops/trait.Deref.html "> < code > Dref </ code > </ a > を提供します。
195
+ < p > 標準ライブラリは特別なトレイト < a href ="../std/ops/trait.Deref.html "> < code > Deref </ code > </ a > を提供します。
196
196
< code > Deref</ code > は通常、参照外し演算子 < code > *</ code > をオーバーロードするために利用されます。</ p >
197
197
198
198
< span class ='rusttest '> use std::ops::Deref;
Original file line number Diff line number Diff line change @@ -450,7 +450,7 @@ <h3 id='何故ポインタなのか' class='section-header'><a href='#何故ポ
450
450
way to guarantee that this last point can work if the values are stored without
451
451
a pointer, because those other types can be arbitrarily large. -->
452
452
453
- < p > < code > Foo</ code > のためには、 < code > String</ code > (24 bytes)か < code > u8</ code > (1 byte)もしくは < code > Foo</ code > (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。</ p >
453
+ < p > < code > Foo</ code > のためには、 < code > String</ code > (24 bytes)か < code > u8</ code > (1 byte)もしくは < code > Foo</ code > (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。</ p >
454
454
455
455
<!-- Putting the value behind a pointer means the size of the value is not relevant
456
456
when we are tossing a trait object around, only the size of the pointer itself. -->
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ <h1 class="title">`Deref` による型強制</h1>
184
184
185
185
<!-- used to overload `*`, the dereference operator: -->
186
186
187
- < p > 標準ライブラリは特別なトレイト < a href ="../std/ops/trait.Deref.html "> < code > Dref </ code > </ a > を提供します。
187
+ < p > 標準ライブラリは特別なトレイト < a href ="../std/ops/trait.Deref.html "> < code > Deref </ code > </ a > を提供します。
188
188
< code > Deref</ code > は通常、参照外し演算子 < code > *</ code > をオーバーロードするために利用されます。</ p >
189
189
190
190
< span class ='rusttest '> use std::ops::Deref;
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ <h3 id='何故ポインタなのか' class='section-header'><a href='#何故ポ
442
442
way to guarantee that this last point can work if the values are stored without
443
443
a pointer, because those other types can be arbitrarily large. -->
444
444
445
- < p > < code > Foo</ code > のためには、 < code > String</ code > (24 bytes)か < code > u8</ code > (1 byte)もしくは < code > Foo</ code > (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。</ p >
445
+ < p > < code > Foo</ code > のためには、 < code > String</ code > (24 bytes)か < code > u8</ code > (1 byte)もしくは < code > Foo</ code > (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。</ p >
446
446
447
447
<!-- Putting the value behind a pointer means the size of the value is not relevant
448
448
when we are tossing a trait object around, only the size of the pointer itself. -->
You can’t perform that action at this time.
0 commit comments