Skip to content
New issue

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

[pointer][transmute] Support generic TransmuteFrom #1969

Open
wants to merge 1 commit into
base: I1ac2ae177a235083e33b09fc848423220d3da042
Choose a base branch
from

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Oct 23, 2024

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


This PR is on branch ptr-overhaul-more-generic-issue-1945.

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
@joshlf joshlf force-pushed the I25973ea67f59671329a920dd39183c1348942a1a branch from f3a5e25 to e8db1f3 Compare November 13, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant