-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
API Docs: ptr #29371
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityMedium priority
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.P-mediumMedium priorityMedium priority
Type
Fields
Give feedbackNo fields configured for issues without a type.
Part of #29329
http://doc.rust-lang.org/std/ptr/
Here's what needs to be done to close out this issue:
*const T/*mut T, but it's really about common functions that work with them.copycould link tomemmovesomewhere.copy_nonoverlappingshould link tomemcpy. Both of these functions should talk more about what "overlapping" means here.drop_in_placeneeds links and examplesreadneeds to explain why and where you should use it, as well as linking some stuff.read_volitileneeds linksreplaceshould link tomem::replace, and justify its unsafety better.swapneeds to split out its summary from its description, link tomem::swap, and get an example.writeneeds to explain when and where to use it, and to link some typeswrite_bytesneeds to better justify itself, linkmemset, and move that out of its summary line.write_volatileneeds to linkread.