Skip to content

Commit 5dc52db

Browse files
committed
Translate a list
1 parent 6af5d17 commit 5dc52db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/phantom-data.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,14 @@ standard library made a utility for itself called `Unique<T>` which:
147147
アロケーションを持つ生ポインタは普及しているパターンですので、
148148
標準ライブラリが以下の機能を持つ、 `Unique<T>` と呼ばれるユーティリティを作りました。
149149

150+
<!--
150151
* wraps a `*const T` for variance
151152
* includes a `PhantomData<T>`
152153
* auto-derives Send/Sync as if T was contained
153154
* marks the pointer as NonZero for the null-pointer optimization
155+
-->
156+
157+
* 変性を得るため、 `*const T` をラップします
158+
* `PhantomData<T>` を含みます
159+
* T が Send/Sync を保持しているかのように、自動的に継承します
160+
* ヌルポインタ最適化のため、ポインタを非 0 としてマークします

0 commit comments

Comments
 (0)