We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://doc.rust-lang.org/std/marker/struct.PhantomData.html#ownership-and-the-drop-check, via
rust/library/core/src/marker.rs
Line 728 in 21e6de7
#103413 updated the documentation for PhantomData to say
PhantomData
Currently, adding a field of type PhantomData<T> indicates that your type owns data of type T in very rare circumstances.
PhantomData<T>
T
I don't understand. How rare must these circumstances be for me to use PhantomData? What should I do if my type always owns data of type T?
I guess this is not what was meant, but I am finding it hard to figure out what the intention was and propose an improvement.
Possibly just remove the phrase "in very rare circumstances"?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Location
https://doc.rust-lang.org/std/marker/struct.PhantomData.html#ownership-and-the-drop-check, via
rust/library/core/src/marker.rs
Line 728 in 21e6de7
Summary
#103413 updated the documentation for
PhantomData
to sayI don't understand. How rare must these circumstances be for me to use
PhantomData
? What should I do if my type always owns data of typeT
?I guess this is not what was meant, but I am finding it hard to figure out what the intention was and propose an improvement.
Possibly just remove the phrase "in very rare circumstances"?
The text was updated successfully, but these errors were encountered: