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