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

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.

Provided methods

Unsets bit at specified index.

Panics

Calling with idx > MAX_UNSET_INDEX should panic.

Implementations are encouraged to use assertions.

Implementations on Foreign Types

Implementors