pub(crate) fn to_regular_range<T: RangeBounds<usize>>( generic_rage: &T, bit_length: usize, ) -> Range<usize>