Tags: meithecatte/enumflags2
Tags
Release 0.7.4 - Added `BitFlags::len`, which returns the number of flags set. - Added `BitFlags::exactly_one`, which converts a singleton flag set to the flag. Returns `Option::None` if the input is not a singleton. - The iterator returned by `BitFlags::iter` now implements `ExactSizeIterator` and `FusedIterator`. - `BitFlags` now implements `IntoIterator`.
Release 0.7.3 - The code generated by the macro no longer triggers Clippy's `use_self` lint. To prevent further issues of this kind, Clippy now runs on the test suite in CI, with the pedantic and nursery lints enabled too. - Some more functions are marked `#[inline]` now. This will probably improve downstream performance in non-LTO builds. - Some more functions are marked `#[must_use]` now, at the suggestion of Clippy. If this triggers, your code was probably weird and/or broken, but it's not really a mistake I'd expect anyone to make. - Minor documentation improvements.
PreviousNext