pub fn new(pos: u8) -> Option<Self> {
		if pos >= bits_of::<R>() as u8 {
			return None;
		}
		Some(unsafe { Self::new_unchecked(pos) })
	}
/// Wraps a counter value as a known-good position within an `R` register.
///
/// ## Parameters
///
/// - `pos`: The counter value to mark as a position. This must be in the
///   range `0 .. R::BITS`.
///
/// ## Returns
///
/// This returns `Some(pos)` when it is in the valid range `0 .. R::BITS`,
/// and `None` when it is not.
Wraps a counter value as a known-good position within an `R` register.
Wraps a counter value as a known - good position within an ` R ` register .
pub fn new(pos: u8) -> Option<Self> {
		if pos >= bits_of::<R>() as u8 {
			return None;
		}
		Some(unsafe { Self::new_unchecked(pos) })
	}
pub fn new ( pos : u8 ) -> Option < Self > { if pos >= bits_of :: < R > ( ) as u8 { return None ; } Some ( unsafe { Self :: new_unchecked ( pos ) } ) }
Wraps a counter value as a known-good position within an `R` register.
Wraps a counter value as a known - good position within an ` R ` register .
pos
u8
This returns `Some(pos)` when it is in the valid range `0 .. R::BITS`,
and `None` when it is not.
This returns ` Some ( pos ) ` when it is in the valid range ` 0 .. R :: BITS ` and ` None ` when it is not .
pos
u8
The counter value to mark as a position. This must be in the
range `0 ..
The counter value to mark as a position . This must be in the range ` 0 ..