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 3
3
4
4
<!-- The standard library provides a special trait, [`Deref`][deref]. It’s normally -->
5
5
<!-- used to overload `*`, the dereference operator: -->
6
- 標準ライブラリは特別なトレイト [ ` Dref ` ] [ deref ] を提供します。
6
+ 標準ライブラリは特別なトレイト [ ` Deref ` ] [ deref ] を提供します。
7
7
` Deref ` は通常、参照外し演算子 ` * ` をオーバーロードするために利用されます。
8
8
9
9
``` rust
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ Rustはガーベジコレクタによって管理される多くの言語とは
195
195
dependent crates may implement `Foo` (any number of bytes at all). There’s no
196
196
way to guarantee that this last point can work if the values are stored without
197
197
a pointer, because those other types can be arbitrarily large. -->
198
- ` Foo ` のためには、 ` String ` (24 bytes)か ` u8 ` (1 byte)もしくは ` Foo ` (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
198
+ ` Foo ` のためには、 ` String ` (24 bytes)か ` u8 ` (1 byte)もしくは ` Foo ` (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
199
199
200
200
<!-- Putting the value behind a pointer means the size of the value is not relevant
201
201
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 3
3
4
4
<!-- The standard library provides a special trait, [`Deref`][deref]. It’s normally -->
5
5
<!-- used to overload `*`, the dereference operator: -->
6
- 標準ライブラリは特別なトレイト [ ` Dref ` ] [ deref ] を提供します。
6
+ 標準ライブラリは特別なトレイト [ ` Deref ` ] [ deref ] を提供します。
7
7
` Deref ` は通常、参照外し演算子 ` * ` をオーバーロードするために利用されます。
8
8
9
9
``` rust
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ Rustはガーベジコレクタによって管理される多くの言語とは
195
195
dependent crates may implement `Foo` (any number of bytes at all). There’s no
196
196
way to guarantee that this last point can work if the values are stored without
197
197
a pointer, because those other types can be arbitrarily large. -->
198
- ` Foo ` のためには、 ` String ` (24 bytes)か ` u8 ` (1 byte)もしくは ` Foo ` (とにかくどんなサイズでも)を実装する依存クレイト内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
198
+ ` Foo ` のためには、 ` String ` (24 bytes)か ` u8 ` (1 byte)もしくは ` Foo ` (とにかくどんなサイズでも)を実装する依存クレート内の型のうちから少なくとも1つの値を格納する必要があります 。ポインタ無しで値を保存した場合、その直後の動作が正しいかどうかを保証する方法がありません。型によって値のサイズが異なるからです。
199
199
200
200
<!-- Putting the value behind a pointer means the size of the value is not relevant
201
201
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