Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `false`
(length: usize)
| 145 | |
| 146 | /// Create a new [`BooleanBuffer`] of `length` bits (not bytes) where all values are `false` |
| 147 | pub fn new_unset(length: usize) -> Self { |
| 148 | let buffer = MutableBuffer::new_null(length).into_buffer(); |
| 149 | Self { |
| 150 | buffer, |
| 151 | bit_offset: 0, |
| 152 | bit_len: length, |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | /// Invokes `f` with indexes `0..len` collecting the boolean results into a new `BooleanBuffer` |
| 157 | pub fn collect_bool<F: FnMut(usize) -> bool>(len: usize, f: F) -> Self { |
nothing calls this directly
no test coverage detected