pub unsafe fn from_bitptr(bitptr: BitPtr<M, T, O>) -> Self {
		let data = bitptr.read();
		Self {
			bitptr,
			data,
			_ref: PhantomData,
		}
	}
/// Converts a bit-pointer into a proxy bit-reference.
///
/// This reads through the pointer in order to cache the current bit value
/// in the proxy.
///
/// ## Original
///
/// The syntax `unsafe { &* ptr }`.
///
/// ## Safety
///
/// This is equivalent to (and is!) dereferencing a raw pointer. The pointer
/// must be well-constructed, refer to a live memory location in the program
/// context, and not be aliased beyond its typing indicators.
Converts a bit-pointer into a proxy bit-reference.
This reads through the pointer in order to cache the current bit value
in the proxy.
Converts a bit - pointer into a proxy bit - reference . This reads through the pointer in order to cache the current bit value in the proxy .
pub unsafe fn from_bitptr(bitptr: BitPtr<M, T, O>) -> Self {
		let data = bitptr.read();
		Self {
			bitptr,
			data,
			_ref: PhantomData,
		}
	}
pub unsafe fn from_bitptr ( bitptr : BitPtr < M , T , O > ) -> Self { let data = bitptr . read ( ) ; Self { bitptr , data , _ref : PhantomData , } }
Converts a bit-pointer into a proxy bit-reference.
Converts a bit - pointer into a proxy bit - reference .
bitptr
BitPtr<M, T, O>
bitptr
BitPtr<M, T, O>
original
The syntax `unsafe { &* ptr }`.
The syntax ` unsafe { & * ptr } ` .
safety
This is equivalent to (and is!) dereferencing a raw pointer. The pointer
must be well-constructed, refer to a live memory location in the program
context, and not be aliased beyond its typing indicators.
This is equivalent to ( and is! ) dereferencing a raw pointer . The pointer must be well - constructed refer to a live memory location in the program context and not be aliased beyond its typing indicators .