File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 25
25
* [ドットオペレータ](dot-operator.md)
26
26
* [キャスト](casts.md)
27
27
* [Transmutes](transmutes.md)
28
- * [ Uninitialized Memory ] ( uninitialized.md )
28
+ * [ 初期化されないメモリ ] ( uninitialized.md )
29
29
* [チェックされるメモリ](checked-uninit.md)
30
30
* [Drop Flags](drop-flags.md)
31
31
* [Unchecked](unchecked-uninit.md)
Original file line number Diff line number Diff line change
1
+ <!--
1
2
# Working With Uninitialized Memory
3
+ -->
2
4
5
+ # 初期化されないメモリを扱う
6
+
7
+ <!--
3
8
All runtime-allocated memory in a Rust program begins its life as
4
9
*uninitialized*. In this state the value of the memory is an indeterminate pile
5
10
of bits that may or may not even reflect a valid state for the type that is
6
11
supposed to inhabit that location of memory. Attempting to interpret this memory
7
12
as a value of *any* type will cause Undefined Behavior. Do Not Do This.
13
+ -->
14
+
15
+ すべての Rust の、実行時にアロケートされるメモリは、最初に* 初期化されません* 。
16
+ この状態では、メモリ上の値は、そのメモリ番地にあると想定される型の、正しい状態を
17
+ 反映しているかもしれないし、していないかもしれないビットの無限の山です。
18
+ このメモリを* いかなる* 型の値として解釈しようとしても、未定義動作を引き起こすでしょう。
19
+ 絶対にしないでください。
8
20
21
+ <!--
9
22
Rust provides mechanisms to work with uninitialized memory in checked (safe) and
10
23
unchecked (unsafe) ways.
24
+ -->
25
+
26
+ Rust では、初期化されていないメモリを扱う、チェックが入る (安全な) 方法と、
27
+ チェックされない (アンセーフな) やり方があります。
You can’t perform that action at this time.
0 commit comments