pub unsafe fn swap<T2, O2>(self, with: BitPtr<Mut, T2, O2>)
	where
		T2: BitStore,
		O2: BitOrder,
	{
		self.write(with.replace(self.read()));
	}
/// Swaps the bits at two mutable locations.
///
/// ## Original
///
/// [`pointer::swap`](https://doc.rust-lang.org/std/primitive.pointer.html#method.swap)
///
/// ## Safety
///
/// See [`ptr::swap`].
///
/// [`ptr::swap`]: crate::ptr::swap
Swaps the bits at two mutable locations.
Swaps the bits at two mutable locations .
pub unsafe fn swap<T2, O2>(self, with: BitPtr<Mut, T2, O2>)
	where
		T2: BitStore,
		O2: BitOrder,
	{
		self.write(with.replace(self.read()));
	}
pub unsafe fn swap < T2 , O2 > ( self , with : BitPtr < Mut , T2 , O2 > ) where T2 : BitStore , O2 : BitOrder , { self . write ( with . replace ( self . read ( ) ) ) ; }
Swaps the bits at two mutable locations.
Swaps the bits at two mutable locations .
self
with
BitPtr<Mut, T2, O2>
self
with
BitPtr<Mut, T2, O2>
original
None
safety
None