# \`BitSlice\` or a sound way to implement one

**URL:** <https://internals.rust-lang.org/t/bitslice-or-a-sound-way-to-implement-one/24194>\
**Category:** Unsafe Code Guidelines\
**Created:** [April 23, 2026, 11:31pm UTC](https://internals.rust-lang.org/t/bitslice-or-a-sound-way-to-implement-one/24194 "2026-04-23T23:31:20Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jugglerchris](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/jugglerchris/32/2661_2.png) [@jugglerchris](https://internals.rust-lang.org/u/jugglerchris)\
**Post date:** [April 24, 2026, 8:11am UTC](https://internals.rust-lang.org/t/bitslice-or-a-sound-way-to-implement-one/24194/6 "2026-04-24T08:11:53Z")

</div>

I guess you might also want another 3 bits to indicate the starting bit position?

---

_[View the full topic](https://internals.rust-lang.org/t/bitslice-or-a-sound-way-to-implement-one/24194)._
