Skip to content

Commit 42febdc

Browse files
authored
Merge pull request #145 from rust-lang-ja/change_casting
Change casting
2 parents e7acbd9 + 1291876 commit 42febdc

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

TranslationTable.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@
1010

1111
| English | 日本語
1212
| :------------------------------- | :-------------
13-
| abort | アボート
1413
| (lockの) acquire | 獲得
14+
| (lockの) release | 解放
15+
| Intrinsics | Intrinsic
16+
| Lang Items | Lang Item
17+
| Universal Function Call Syntax | 共通の関数呼び出し構文
18+
| abort | アボート
19+
| activity | 実践
1520
| aggregate type | 合成型
1621
| alignment | アラインメント
1722
| allocator | アロケータ
1823
| antipattern | アンチパターン
1924
| application | アプリケーション
25+
| argument type | 引数タイプ
2026
| arity | アリティ
2127
| array | 配列
2228
| assignment | 代入
@@ -26,15 +32,18 @@
2632
| binary | バイナリ
2733
| binding | 束縛
2834
| block | ブロック
35+
| borrow checker | 借用チェッカー
2936
| borrowing | 借用
3037
| bounds | 境界
3138
| bug | バグ
3239
| capture | キャプチャ
3340
| case analysis | 場合分け
41+
| casting | キャスト
3442
| channel | チャネル
3543
| closure | クロージャ
36-
| coercion | 型強制
3744
| code bloat | コードの膨張
45+
| coercion | 型強制
46+
| color model | カラーモデル
3847
| combinator | コンビネータ
3948
| comma | カンマ
4049
| command line | コマンドライン
@@ -47,12 +56,14 @@
4756
| constructor | コンストラクタ
4857
| continuous integration | 継続的インテグレーション
4958
| crate | クレート
59+
| custom type | カスタム型
5060
| dangling | ダングリング
5161
| data race | データ競合
5262
| deadlock | デッドロック
5363
| declaration statement | 宣言文
5464
| dereferencing | 参照外し
5565
| derive | 導出
66+
| designator | 識別子
5667
| destructor | デストラクタ
5768
| destructuring | 分配
5869
| directive | ディレクティブ
@@ -67,6 +78,7 @@
6778
| early return | 早期リターン
6879
| empty tuple | 空タプル
6980
| encode | エンコード
81+
| endpoint | エンドポイント
7082
| entry point | エントリポイント
7183
| enum | 列挙型
7284
| equality | 等値性
@@ -78,8 +90,10 @@
7890
| expression statement | 式文
7991
| exterior | 外側の
8092
| feature | フィーチャ
93+
| field | フィールド
8194
| foreign | 他言語
8295
| free-standing function | フリースタンディングな関数
96+
| full path | 絶対パス
8397
| generic parameter | ジェネリックパラメータ
8498
| generics | ジェネリクス
8599
| glob | グロブ
@@ -88,28 +102,28 @@
88102
| handle | ハンドル
89103
| hash | ハッシュ
90104
| hash set | ハッシュ集合
105+
| higher order functions | 高階関数
91106
| identifier | 識別子
92-
| immutable | イミュータブル
93107
| immutability | イミュータビリティ
108+
| immutable | イミュータブル
94109
| implement | 実装する
95110
| initialize | 初期化する
96111
| input lifetime | 入力ライフタイム
97-
| interior | 内側の
98112
| install | インストール
99113
| installer | インストーラ
114+
| interior | 内側の
100115
| interpolate | インターポーレートする
101116
| interpolation | インターポーレーション
102-
| Intrinsics | Intrinsic
103117
| key | キー
104118
| keyword | キーワード
105-
| Lang Items | Lang Item
106119
| leak | リーク
120+
| least significant bit | 最下位ビット
107121
| lending | 貸付け
108122
| library | ライブラリ
109123
| lifetime | ライフタイム
124+
| lifetime coercion | ライフタイムの圧縮
110125
| lifetime elision | ライフタイムの省略
111126
| lifetime parameter | ライフタイムパラメータ
112-
| lifetime coercion | ライフタイムの圧縮
113127
| link | リンク
114128
| lint | リント
115129
| mangling | マングリング
@@ -123,34 +137,40 @@
123137
| mutable binding | ミュータブルな束縛
124138
| mutual-exclusion | 相互排他
125139
| null | ヌル
140+
| numeric literal | 数値リテラル
126141
| object-safe | オブジェクト安全
127142
| offline | オフライン
128143
| opaque | オペーク
129144
| open source | オープンソース
130145
| option | オプション
131146
| output lifetime | 出力ライフタイム
147+
| output type | アウトプット型
132148
| overflow | オーバーフロー
133149
| owner | 所有者
134150
| ownership | 所有権
135151
| panic | パニック
136152
| parameter | パラメータ
137153
| parametric polymorphism | パラメトリック多相
138154
| parse | パース、パースする
139-
| patch | パッチ
140155
| partial moves | 部分的ムーブ
156+
| patch | パッチ
141157
| pattern | パターン
142158
| performance | パフォーマンス
159+
| phantom type | 幽霊型
143160
| platform | プラットフォーム
144161
| pointer | ポインタ
162+
| primitive type | プリミティブ型
163+
| private | プライベート
145164
| process | プロセス
165+
| public | パブリック
166+
| r-value | 右辺値
146167
| range | レンジ
147168
| raw pointer | 生ポインタ
148169
| re-assignment | 再代入
149170
| rebind | 再束縛
150171
| reference count | 参照カウント
151172
| regression | リグレッション
152173
| release | リリース
153-
| (lockの) release | 解放
154174
| return | 返す
155175
| return type | リターン型
156176
| return value | 戻り値
@@ -183,18 +203,18 @@
183203
| thread-locality | スレッドローカル性
184204
| threadsafe | スレッドセーフ
185205
| tick | クオート
206+
| token trees | トークン木
186207
| trait | トレイト
208+
| transmute | トランスミュート
187209
| tuple | タプル
188210
| tuple struct | タプル
189-
| token trees | トークン木
190211
| type alias | 型エイリアス
191212
| type erasure | 型消去
192213
| type family | 型族
193214
| type inference | 型推論
194215
| type parameter | 型パラメータ
195216
| uninstall | アンインストール
196217
| unit 注: `()` の読み | ユニット
197-
| Universal Function Call Syntax | 共通の関数呼び出し構文
198218
| unsafe | アンセーフ
199219
| unsigned | 符号無し
200220
| unsized type | サイズ不定型
@@ -209,23 +229,3 @@
209229
| warning | ウォーニング
210230
| wildcard | ワイルドカード
211231
| wrapper | ラッパ
212-
| activity | 実践
213-
| custom type | カスタム型
214-
| argument type | 引数タイプ
215-
| primitive type | プリミティブ型
216-
| casting | キャスティング
217-
| least significant bit | 最下位ビット
218-
| numeric literal | 数値リテラル
219-
| full path | 絶対パス
220-
| r-value | 右辺値
221-
| color model | カラーモデル
222-
| higher order functions | 高階関数
223-
| designator | 識別子
224-
| field | フィールド
225-
| public | パブリック
226-
| private | プライベート
227-
| borrow checker | 借用チェッカー
228-
| endpoint | エンドポイント
229-
| transmute | トランスミュート
230-
| output type | アウトプット型
231-
| phantom type | 幽霊型

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
- [Aliasing](types/alias.md)
6969
-->
7070
- [](types.md)
71-
- [型キャスティング](types/cast.md)
71+
- [型キャスト](types/cast.md)
7272
- [リテラル](types/literals.md)
7373
- [型推論](types/inference.md)
7474
- [エイリアス](types/alias.md)

src/conversion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!--
77
Primitive types can be converted to each other through [casting].
88
-->
9-
プリミティブ型同士は[キャスティング][casting]を用いて変換できます。
9+
プリミティブ型同士は[キャスト][casting]を用いて変換できます。
1010

1111
<!--
1212
Rust addresses conversion between custom types (i.e., `struct` and `enum`)

src/custom_types/enum/c_like.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ fn main() {
4848
<!--
4949
[casting][cast]
5050
-->
51-
[キャスティング][cast]
51+
[キャスト][cast]
5252

5353
[cast]: ../../types/cast.md

src/types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Rustには、プリミティブ型やユーザ定義型を定義したり変換
1515
* Using [type inference]
1616
* [Aliasing] types
1717
-->
18-
* プリミティブ型の間で[キャスティング]を行う
18+
* プリミティブ型の間で[キャスト]を行う
1919
* [リテラル]の型をどれにしたいか指定する
2020
* [型推論]を使う
2121
* 型を[エイリアス]する
@@ -26,7 +26,7 @@ Rustには、プリミティブ型やユーザ定義型を定義したり変換
2626
[type inference]: types/inference.md
2727
[Aliasing]: types/alias.md
2828
-->
29-
[キャスティング]: types/cast.md
29+
[キャスト]: types/cast.md
3030
[リテラル]: types/literals.md
3131
[型推論]: types/inference.md
3232
[エイリアス]: types/alias.md

src/types/cast.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
# Casting
33
-->
4-
# 型キャスティング
4+
# 型キャスト
55

66
<!--
77
Rust provides no implicit type conversion (coercion) between primitive types.
@@ -19,7 +19,7 @@ C言語で未定義の場合の挙動も、Rustでは完全に定義されてい
1919

2020
```rust,editable,ignore,mdbook-runnable
2121
// Suppress all warnings from casts which overflow.
22-
// オーバーフローを起こすようなキャスティングによる警告を無視する
22+
// オーバーフローを起こすようなキャストによる警告を無視する
2323
#![allow(overflowing_literals)]
2424
2525
fn main() {
@@ -46,7 +46,7 @@ fn main() {
4646
// when casting any value to an unsigned type, T,
4747
// T::MAX + 1 is added or subtracted until the value
4848
// fits into the new type
49-
// 何らかの値を符号なしの型(仮にTとする)へキャスティングすると
49+
// 何らかの値を符号なしの型(仮にTとする)へキャストすると
5050
// 値がTに収まるまで、T::MAX + 1 が加算あるいは減算される。
5151
5252
// 1000 already fits in a u16

0 commit comments

Comments
 (0)