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

Add ability to transpose Unalign<Cell<T>> and Cell<Unalign<T>> #211

Closed
joshlf opened this issue Aug 1, 2023 · 1 comment
Closed

Add ability to transpose Unalign<Cell<T>> and Cell<Unalign<T>> #211

joshlf opened this issue Aug 1, 2023 · 1 comment
Labels
compatibility-nonbreaking Changes that are (likely to be) non-breaking

Comments

@joshlf
Copy link
Member

joshlf commented Aug 1, 2023

Add methods with signatures roughly like the following (names to be bikeshedded):

impl<T> Unalign<Cell<T>> {
    pub const fn transpose_cell(self) -> Cell<Unalign<T>> { ... }
    pub const fn as_transposed_cell(&self) -> &Cell<Unalign<T>> { ... }
    pub const fn as_transposed_cell_mut(&mut self) -> &mut Cell<Unalign<T>> { .. }
}

Note that this might also be handled if we implement generic transposition in #196.

@joshlf joshlf added the compatibility-nonbreaking Changes that are (likely to be) non-breaking label Aug 12, 2023
@joshlf joshlf mentioned this issue Aug 20, 2023
@joshlf
Copy link
Member Author

joshlf commented Oct 6, 2024

Not clear that there's a use case for this.

@joshlf joshlf closed this as completed Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility-nonbreaking Changes that are (likely to be) non-breaking
Projects
None yet
Development

No branches or pull requests

1 participant