pub unsafe fn new_unchecked(
		ptr: Address<M, T>,
		bit: BitIdx<T::Mem>,
	) -> Self {
		if cfg!(debug_assertions) {
			Self::new(ptr, bit).unwrap()
		}
		else {
			Self {
				ptr,
				bit,
				..Self::DANGLING
			}
		}
	}
/// Constructs a `BitPtr` from an address and head index, without checking
/// the address for validity.
///
/// ## Parameters
///
/// - `addr`: The memory address to use in the bit-pointer. See the Safety
///   section.
/// - `head`: The index of the bit in `*addr` that this bit-pointer selects.
///
/// ## Returns
///
/// A new bit-pointer composed of the parameters. No validity checking is
/// performed.
///
/// ## Safety
///
/// The `Address` type imposes a non-null requirement. `BitPtr` additionally
/// requires that `addr` is well-aligned for `T`, and presumes that the
/// caller has ensured this with [`bv_ptr::check_alignment`][0]. If this is
/// not the case, then the program is incorrect, and subsequent behavior is
/// not specified.
///
/// [0]: crate::ptr::check_alignment.
Constructs a `BitPtr` from an address and head index, without checking
the address for validity.
Constructs a ` BitPtr ` from an address and head index without checking the address for validity .
pub unsafe fn new_unchecked(
		ptr: Address<M, T>,
		bit: BitIdx<T::Mem>,
	) -> Self {
		if cfg!(debug_assertions) {
			Self::new(ptr, bit).unwrap()
		}
		else {
			Self {
				ptr,
				bit,
				..Self::DANGLING
			}
		}
	}
pub unsafe fn new_unchecked ( ptr : Address < M , T > , bit : BitIdx < T :: Mem > , ) -> Self { if cfg ! ( debug_assertions ) { Self :: new ( ptr , bit ) . unwrap ( ) } else { Self { ptr , bit , .. Self :: DANGLING } } }
Constructs a `BitPtr` from an address and head index, without checking
the address for validity.
Constructs a ` BitPtr ` from an address and head index without checking the address for validity .
ptr
Address<M, T>
bit
BitIdx<T::Mem>
A new bit-pointer composed of the parameters. No validity checking is
performed.
A new bit - pointer composed of the parameters . No validity checking is performed .
ptr
Address<M, T>
bit
BitIdx<T::Mem>
addr
The memory address to use in the bit-pointer. See the Safety
section.
The memory address to use in the bit - pointer . See the Safety section .
head
The index of the bit in `*addr` that this bit-pointer selects.
The index of the bit in ` * addr ` that this bit - pointer selects .
safety
The `Address` type imposes a non-null requirement. `BitPtr` additionally
requires that `addr` is well-aligned for `T`, and presumes that the
caller has ensured this with [`bv_ptr::check_alignment`][0]. If this is
not the case, then the program is incorrect, and subsequent behavior is
not specified.

[0]: crate::ptr::check_alignment.
The ` Address ` type imposes a non - null requirement . ` BitPtr ` additionally requires that ` addr ` is well - aligned for ` T ` and presumes that the caller has ensured this with [ ` bv_ptr :: check_alignment ` ] [ 0 ] . If this is not the case then the program is incorrect and subsequent behavior is not specified . [ 0 ] : crate :: ptr :: check_alignment .