ARROW-9047: [Rust] Fix a segfault when setting zero bits in a zero-length bitset.
ARROW-9047: [Rust] Fix a segfault when setting zero bits in a zero-length bitset.

If the mutable bitset is allocated with zero elements it'll have an
address that, when accessed, segfaults. Even if the number of bits (n)
set is zero, it still reads from this invalid address and things crash.

Closes #7360 from maxburke/rust_empty_bitset_fix

Authored-by: Max Burke <0706025b2bbcec1ed8d64822f4eccd96314938d0@urbanlogiq.com>
Signed-off-by: Neville Dipale <4e1ab218b24f06847d563ff3773c7517c139f863@gmail.com>

wesm/arrow,icexelloss/arrow,apache/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow,laurentgo/arrow,xhochy/arrow,icexelloss/arrow,kou/arrow,laurentgo/arrow,xhochy/arrow,cpcloud/arrow,apache/arrow,cpcloud/arrow,kou/arrow,icexelloss/arrow,cpcloud/arrow,wesm/arrow,apache/arrow,laurentgo/arrow,xhochy/arrow,kou/arrow,apache/arrow,xhochy/arrow,xhochy/arrow,wesm/arrow,apache/arrow,apache/arrow,apache/arrow,wesm/arrow,kou/arrow,xhochy/arrow,laurentgo/arrow,icexelloss/arrow,laurentgo/arrow,xhochy/arrow,laurentgo/arrow,wesm/arrow,cpcloud/arrow,xhochy/arrow,wesm/arrow,apache/arrow,cpcloud/arrow,xhochy/arrow,kou/arrow,wesm/arrow,kou/arrow,icexelloss/arrow,laurentgo/arrow,apache/arrow,apache/arrow,xhochy/arrow,cpcloud/arrow,laurentgo/arrow,kou/arrow,kou/arrow,wesm/arrow,xhochy/arrow,kou/arrow,kou/arrow,kou/arrow,laurentgo/arrow,cpcloud/arrow,icexelloss/arrow,cpcloud/arrow,cpcloud/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,cpcloud/arrow,wesm/arrow,xhochy/arrow,cpcloud/arrow,laurentgo/arrow,wesm/arrow,kou/arrow,apache/arrow,cpcloud/arrow,laurentgo/arrow,wesm/arrow,laurentgo/arrow,wesm/arrow,cpcloud/arrow,xhochy/arrow,icexelloss/arrow,cpcloud/arrow,kou/arrow,laurentgo/arrow,apache/arrow,xhochy/arrow,apache/arrow,icexelloss/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow