nvzqz / byte-set-rs

Efficient sets of bytes for Rust
https://docs.rs/byte_set
Apache License 2.0
19 stars 1 forks source link

Add `const` range constructors for `ByteSet` #4

Closed nvzqz closed 4 years ago

nvzqz commented 4 years ago

We should be able to create a ByteSet from a..b or a..=b where a and b are u8, and have it be usable in const.

The API should look like:

I expect this would be implemented via bit tricks over the integer chunk representation.