File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
11
11
例えば、 ` i32 ` 型は、32ビット(4バイト)というサイズです。
12
12
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
13
- そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
13
+ そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
14
14
一例を上げると ` [T] ` 型は 一定のサイズの` T ` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。
15
15
16
16
<!-- Rust understands a few of these types, but they have some restrictions. There -->
@@ -56,7 +56,7 @@ impl Foo for &str {
56
56
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
57
57
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
58
58
<!-- pointers, can use this `impl`. -->
59
- このように書いたとすると、このコードは [ 参照] [ ref ] に対してのみ動作する用になり 、他のポインタ型に対しては動作しないことになります。
59
+ このように書いたとすると、このコードは [ 参照] [ ref ] に対してのみ動作するようになり 、他のポインタ型に対しては動作しないことになります。
60
60
` imp for str ` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの ` impl ` を利用可能になります。
61
61
62
62
[ ref ] : references-and-borrowing.html
Original file line number Diff line number Diff line change 10
10
ほとんどの型はコンパイル時に知れる、バイト数で測った、サイズがあります。
11
11
例えば、 ` i32 ` 型は、32ビット(4バイト)というサイズです。
12
12
しかしながら、表現のためには便利であってもサイズが定まっていない型が存在します。
13
- そのような方を 「サイズ不定」又は「動的サイズ」型と呼びます。
13
+ そのような型を 「サイズ不定」又は「動的サイズ」型と呼びます。
14
14
一例を上げると ` [T] ` 型は 一定のサイズの` T ` のシーケンスを意味していますが、その要素数については規定されていないため、サイズは不定となります。
15
15
16
16
<!-- Rust understands a few of these types, but they have some restrictions. There -->
@@ -56,7 +56,7 @@ impl Foo for &str {
56
56
<!-- other types of pointers. With the `impl for str`, all pointers, including (at -->
57
57
<!-- some point, there are some bugs to fix first) user-defined custom smart -->
58
58
<!-- pointers, can use this `impl`. -->
59
- このように書いたとすると、このコードは [ 参照] [ ref ] に対してのみ動作する用になり 、他のポインタ型に対しては動作しないことになります。
59
+ このように書いたとすると、このコードは [ 参照] [ ref ] に対してのみ動作するようになり 、他のポインタ型に対しては動作しないことになります。
60
60
` imp for str ` のように書くことで、すべてのポインタ、ユーザーの定義した独自のスマートポインタ(いくつかの点についてバグがあるので、それを先ずは直さなくてはなりませんが)もこの ` impl ` を利用可能になります。
61
61
62
62
[ ref ] : references-and-borrowing.html
You can’t perform that action at this time.
0 commit comments