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

fix: FixedBitString might work as expected #385

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

Nicceboy
Copy link
Contributor

@Nicceboy Nicceboy commented Nov 28, 2024

PartiallyFixes #383

I am not sure if the current way is the most convenient way to use the type, but without wrapping it with newtype, I will not get much better.

@Nicceboy Nicceboy force-pushed the fix-fixed-size-bitstring branch from 1f51630 to 0c708b6 Compare November 28, 2024 16:01
@XAMPPRocky
Copy link
Collaborator

I am not sure if the current way is the most convenient way to use the type, but without wrapping it with newtype, I will not get much better.

I want to clarify that, that is a possibility. If we need to wrap types to provide a better interface we can and should do that. This is totally fine for now though.

@Nicceboy Nicceboy force-pushed the fix-fixed-size-bitstring branch from 0c708b6 to ef9b68f Compare November 28, 2024 16:55
@Nicceboy
Copy link
Contributor Author

I'll link #76 if it can be then improved at the same time.

@XAMPPRocky XAMPPRocky merged commit 2bab0e3 into librasn:main Nov 28, 2024
65 checks passed
@github-actions github-actions bot mentioned this pull request Nov 28, 2024
@Nicceboy Nicceboy deleted the fix-fixed-size-bitstring branch November 29, 2024 06:19
@Nicceboy
Copy link
Contributor Author

What if we would just use type [bool; N] instead? We don't lose in size since BitArray takes the same space, and [bool; N] would be also constant (it is not currently). It would be easier to operate and we reduce the dependency from BitVec crate.

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.

2 participants