Function bitvec::slice::from_raw_parts_unchecked_mut
source · [−]pub unsafe fn from_raw_parts_unchecked_mut<'a, O, T>(
data: BitPtr<Mut, O, T>,
len: usize
) -> &'a mut BitSlice<O, T>ⓘ where
O: BitOrder,
T: BitStore,
Expand description
Performs the same functionality as from_raw_parts_mut
, without checking
the len
argument.
Parameters
data
: ABitPtr
to a dereferencable region of memory.len
: The length, in bits, of the region beginning at*data
. This is not checked against the maximum value, and is encoded directly into the bit-slice reference. If it exceedsBitSlice::MAX_BITS
, it will be modulated to fit (the high bits will be discarded).
Returns
A &mut BitSlice
reference starting at data
and running for len & MAX_BITS
bits.
Safety
See from_raw_parts_mut
.