| 1 |
# Bit-Slice to Bit-Array Conversion Error |
| 2 |
|
| 3 |
This error is produced when an `&BitSlice` view is unable to be recast as a |
| 4 |
`&BitArray` view with the same parameters. |
| 5 |
|
| 6 |
Unlike ordinary scalars and arrays, where arrays are never aligned more |
| 7 |
stringently than their components, `BitSlice` is aligned to an individual bit |
| 8 |
while `BitArray` is aligned to its `A` storage type. |
| 9 |
|
| 10 |
This is produced whenever a `&BitSlice` view is not exactly as long as the |
| 11 |
destination `&BitArray` view is, or does not also begin at the zeroth bit in an |
| 12 |
`A::Store` element. |
| 13 |
|
| 14 |
## Original |
| 15 |
|
| 16 |
[`array::TryFromSliceError`](core::array::TryFromSliceError) |