[pointer][transmute] Support generic TransmuteFrom#1969
Closed
joshlf wants to merge 1 commit intoIfc49755af0d90eeefe7822d755d508403c266bdafrom
Closed
[pointer][transmute] Support generic TransmuteFrom#1969joshlf wants to merge 1 commit intoIfc49755af0d90eeefe7822d755d508403c266bdafrom
joshlf wants to merge 1 commit intoIfc49755af0d90eeefe7822d755d508403c266bdafrom
Conversation
This was referenced Oct 23, 2024
4887e03 to
c6f8751
Compare
33fc89f to
48f1450
Compare
f3a5e25 to
e8db1f3
Compare
355531d to
d89fa0f
Compare
e8db1f3 to
a300d8e
Compare
d89fa0f to
08771d7
Compare
a300d8e to
fa1a25e
Compare
Base automatically changed from
I1ac2ae177a235083e33b09fc848423220d3da042
to
Ifc49755af0d90eeefe7822d755d508403c266bda
February 5, 2025 19:55
75208cb to
93d0d13
Compare
fa1a25e to
3933cc8
Compare
93d0d13 to
2b2f66a
Compare
3933cc8 to
06c65ba
Compare
This commit replaces the `TransparentWrapper` trait with a more generic, bidirectional `TransmuteFrom<T>` trait. `U: TransmuteFrom<T>` indicates that `T` and `U` have the same sizes and that `T` can be transmuted into `U` given certain alignment and validity invariant mappings. Makes progress on #1122 gherrit-pr-id: I25973ea67f59671329a920dd39183c1348942a1a
06c65ba to
769b427
Compare
2b2f66a to
34eb2a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit replaces the
TransparentWrappertrait with a more generic,bidirectional
TransmuteFrom<T>trait.U: TransmuteFrom<T>indicatesthat
TandUhave the same sizes and thatTcan be transmuted intoUgiven certain alignment and validity invariant mappings.Makes progress on #1122
This PR is on branch ptr-overhaul-more-generic-issue-1945.