Skip to content

Conversation

Lokathor
Copy link
Owner

@Lokathor Lokathor commented Aug 22, 2025

The idea here is that you have some sort of Contiguous values and you want to store a "Set" of them without allocating, mostly with the ability to ergonomically check what's in the set. we don't need every single Set function under the sun in this API, because all of our values that could be in the set are naturally immutable anyway.

Of course, this only works with Contiguous types where there's no more than 64 potential values, but still.

@Lokathor Lokathor added semver-minor semver minor change not yet released and removed semver-minor semver minor change labels Aug 22, 2025
@Lokathor
Copy link
Owner Author

Update: I was advised that this can be a totally separate crate that just lives in the bytemuck repo, but is published under some other name, like bytemuck_contiguous_bitset or whatever. This allows for better version management.

@Lokathor Lokathor merged commit 5c8b6e5 into main Aug 27, 2025
28 checks passed
@Lokathor Lokathor deleted the contigous_bitset branch August 27, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant