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 db77d47 commit 467671eCopy full SHA for 467671e
src/phantom-data.md
@@ -147,7 +147,14 @@ standard library made a utility for itself called `Unique<T>` which:
147
アロケーションを持つ生ポインタは普及しているパターンですので、
148
標準ライブラリが以下の機能を持つ、 `Unique<T>` と呼ばれるユーティリティを作りました。
149
150
+<!--
151
* wraps a `*const T` for variance
152
* includes a `PhantomData<T>`
153
* auto-derives Send/Sync as if T was contained
154
* 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