pub unsafe fn new_unchecked(idx: u8) -> Self {
		debug_assert!(
			idx < bits_of::<R>() as u8,
			"Bit index {} cannot exceed type width {}",
			idx,
			bits_of::<R>(),
		);
		Self {
			idx,
			_ty: PhantomData,
		}
	}
/// Wraps a counter value as an assumed-good index into an `R` register.
///
/// ## Parameters
///
/// - `idx`: The counter value to mark as an index. This must be in the
///   range `0 .. R::BITS`.
///
/// ## Returns
///
/// This unconditionally marks `idx` as a valid bit-index.
///
/// ## Safety
///
/// If the `idx` value is outside the valid range, then the program is
/// incorrect. Debug builds will panic; release builds do not inspect the
/// value or specify a behavior.
Wraps a counter value as an assumed-good index into an `R` register.
Wraps a counter value as an assumed - good index into an ` R ` register .
pub unsafe fn new_unchecked(idx: u8) -> Self {
		debug_assert!(
			idx < bits_of::<R>() as u8,
			"Bit index {} cannot exceed type width {}",
			idx,
			bits_of::<R>(),
		);
		Self {
			idx,
			_ty: PhantomData,
		}
	}
pub unsafe fn new_unchecked ( idx : u8 ) -> Self { debug_assert ! ( idx bits_of R ( ) as u8 " " idx bits_of R ( ) ) ; Self { idx , _ty : PhantomData , } }
Wraps a counter value as an assumed-good index into an `R` register.
Wraps a counter value as an assumed - good index into an ` R ` register .
idx
u8
This unconditionally marks `idx` as a valid bit-index.
This unconditionally marks ` idx ` as a valid bit - index .
idx
u8
The counter value to mark as an index. This must be in the
range `0 ..
The counter value to mark as an index . This must be in the range ` 0 ..
safety
If the `idx` value is outside the valid range, then the program is
incorrect. Debug builds will panic; release builds do not inspect the
value or specify a behavior.
If the ` idx ` value is outside the valid range then the program is incorrect . Debug builds will panic ; release builds do not inspect the value or specify a behavior .