Skip to content

Commit 10b136a

Browse files
committed
Translate a paragraph
1 parent 98e85f5 commit 10b136a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/phantom-data.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44

55
# ファントムデータ
66

7+
<!--
78
When working with unsafe code, we can often end up in a situation where
89
types or lifetimes are logically associated with a struct, but not actually
910
part of a field. This most commonly occurs with lifetimes. For instance, the
1011
`Iter` for `&'a [T]` is (approximately) defined as follows:
12+
-->
13+
14+
アンセーフなコードを扱っているとき、しばしば型やライフタイムが論理的に構造体に結びついているけれども、
15+
フィールドの一部には結びついていない状況に陥る事があります。
16+
例えば、 `&'a [T]` に対する `Iter` は (大体) 以下のように定義されます。
1117

1218
```rust,ignore
1319
struct Iter<'a, T: 'a> {

0 commit comments

Comments
 (0)