Macro hi_sparse_bitset::impl_bitset_simple
source · macro_rules! impl_bitset_simple { (impl <$($generics:tt),*> for ref $t:ty where $($where_bounds:tt)*) => { ... }; }
Available on crate feature
impl
only.Expand description
Same as impl_bitset, but for LevelMasks.
Implements LevelMasksIterExt by routing all operations to LevelMasks.
§Safety
DO NOT implement BitSetInterface for $t
, since impl_bitset_simple
’s
LevelMasksIterExt implementation stores pointer to Self in Level1BlockData.
If “drain iterator” will move during iteration - that will invalidate
Level1BlockData.
You have to use impl_bitset! if you need $t
to be BitSetInterface.