Correct `NSecTypeMask::contains_type` and add `from_types` builder
authorMatt Corallo <git@bluematt.me>
Wed, 28 Feb 2024 02:23:52 +0000 (02:23 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 2 Mar 2024 16:41:07 +0000 (16:41 +0000)
commit228b0466b9befa00dd4408dc0f7925c18f9ab4b3
treed9f597312ad0b8d684cd815dc7ba3d78e4e26efa
parent21cb192395adf4912f1a247f416f0197972b8f27
Correct `NSecTypeMask::contains_type` and add `from_types` builder

The low-bit-masking in `NSecTypeMask::contains_type` was incorrect,
leading to spuriously looking at the wrong bit position within the
correct byte.

While we're at it, we also add a new constructor which allows for
bits to be set.
src/rr.rs