pub(crate) fn assert_in_bounds<R>(&self, index: usize, bounds: R)
	where R: RangeExt<usize> {
		let bounds = bounds.normalize(0, self.len());
		assert!(
			bounds.contains(&index),
			"index {} out of range: {:?}",
			index,
			bounds.end_bound()
		);
	}
/// Asserts that `index` is within the given bounds.
///
/// ## Parameters
///
/// - `&self`
/// - `index`: The bit index to test against the bit-slice.
/// - `bounds`: The bounds to check. cannot exceed `0 ..= self.len()`.
///
/// ## Panics
///
/// This panics if `bounds` is outside `index`.
Asserts that `index` is within the given bounds.
Asserts that ` index ` is within the given bounds .
pub(crate) fn assert_in_bounds<R>(&self, index: usize, bounds: R)
	where R: RangeExt<usize> {
		let bounds = bounds.normalize(0, self.len());
		assert!(
			bounds.contains(&index),
			"index {} out of range: {:?}",
			index,
			bounds.end_bound()
		);
	}
pub ( crate ) fn assert_in_bounds < R > ( & self , index : usize , bounds : R ) where R : RangeExt < usize > { let bounds = bounds . normalize ( 0 , self . len ( ) ) ; assert ! ( bounds contains ( index ) " " index bounds end_bound ( ) ) ; }
Asserts that `index` is within the given bounds.
Asserts that ` index ` is within the given bounds .
&self
index
usize
bounds
R
&self
None
index
usize
The bit index to test against the bit-slice.
The bit index to test against the bit - slice .
bounds
R
The bounds to check. cannot exceed `0 ..= self.len()`.
The bounds to check . cannot exceed ` 0 .. = self . len () ` .
panics
This panics if `bounds` is outside `index`.
This panics if ` bounds ` is outside ` index ` .