Trait bitsetium::BitUnset [−][src]
pub trait BitUnset: BitUnsetLimit {
unsafe fn unset_unchecked(&mut self, idx: usize);
fn unset(&mut self, idx: usize) { ... }
}
Expand description
Unset single bit. This trait should be implemented for most mutable bit-set that support resetting bits.
Required methods
unsafe fn unset_unchecked(&mut self, idx: usize)
unsafe fn unset_unchecked(&mut self, idx: usize)
Unsets bit at specified index.
Safety
Calling with idx > MAX_UNSET_INDEX
may trigger UB.
For any idx <= MAX_UNSET_INDEX
behavior is identical to unset
, but may produce better optimized code.
Implementations are encouraged to use debug assertions.