Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Wait for the generic_const_exprs feature to stabilize to simplify const generics #8

Open
silver-ymz opened this issue May 13, 2023 · 1 comment

Comments

@silver-ymz
Copy link
Collaborator

We can wait for the generic_const_exprs feature to stabilize to simplify const generics.

This is what we can do with the generic_const_exprs feature

pub struct Arena<T, const BITARRAY_LEN: usize> {
    buckets: Arcs<Arc<Bucket<T, BITARRAY_LEN, {BITARRAY_LEN * usize::BITS}>>>
}
@NobodyXu
Copy link
Owner

Blocked on rust-lang/rust#76560

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants