We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e85f5 commit 10b136aCopy full SHA for 10b136a
src/phantom-data.md
@@ -4,10 +4,16 @@
4
5
# ファントムデータ
6
7
+<!--
8
When working with unsafe code, we can often end up in a situation where
9
types or lifetimes are logically associated with a struct, but not actually
10
part of a field. This most commonly occurs with lifetimes. For instance, the
11
`Iter` for `&'a [T]` is (approximately) defined as follows:
12
+-->
13
+
14
+アンセーフなコードを扱っているとき、しばしば型やライフタイムが論理的に構造体に結びついているけれども、
15
+フィールドの一部には結びついていない状況に陥る事があります。
16
+例えば、 `&'a [T]` に対する `Iter` は (大体) 以下のように定義されます。
17
18
```rust,ignore
19
struct Iter<'a, T: 'a> {
0 commit comments