Skip to content

Commit 236e657

Browse files
committed
Pointer metadata: add unresolved question for into_raw_parts
1 parent f94f627 commit 236e657

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

text/0000-ptr-meta.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,3 +393,8 @@ Except for `DynMetadata`’s methods, this RFC proposes a subset of what that th
393393
* Should `<*mut _>::from_raw_parts` and friends be `unsafe fn`s?
394394

395395
* API design: free functions v.s. methods/constructors on `*mut _` and `*const _`?
396+
397+
* Add `into_raw_parts` that returns `(*const (), T::Metadata)`?
398+
Using the `cast` method to a `Sized` type to extract the address as a thin pointer
399+
is less discoverable.
400+
Possibly *instead* of the metadata function?

0 commit comments

Comments
 (0)